Solved

Help getting InternetExplorer.Application to work

Posted on 2004-04-14
3
1,760 Views
Last Modified: 2007-12-19
I'm trying to get the following code to work:

-------------------------------------------
<%
dim web
dim doc
dim e
dim outdoc

set web = server.createobject("InternetExplorer.Application")

web.navigate "http://www.microsoft.com"

Do While web.busy
Loop

set doc = web.document

outdoc = doc.documentelement.innerhtml
Response.Write outdoc

set web = nothing
set doc = nothing
set e = nothing
%>

-------------------------------------------
So far I've upgraded IE to 6.0 SP1.
Error I'm getting is :
Error Type:
(0x80004005)
Unspecified error

Error Type:
Microsoft VBScript runtime (0x800A01AE)
Class doesn't support Automation: 'busy'

0
Comment
Question by:grego122
  • 2
3 Comments
 
LVL 11

Expert Comment

by:Slimshaneey
ID: 10825353
Why not just use MSXML like this:

Dim oXML
Dim sPage
Dim oFs
Dim oFile
Set oXML = Server.CreateObject("Microsoft.XMLHTTP")
oXML.Open ("get", "http://www.microsoft.com", false)
oXML.Send
sPage = oXML.ResponseText
Set oXML = Nothing

Response.write sPage


Does same as above without the hassle
0
 
LVL 11

Accepted Solution

by:
Slimshaneey earned 125 total points
ID: 10825379
Actually you will need to remove the brackets on the open line...
0
 

Author Comment

by:grego122
ID: 10827515
Slimshaneey,

The web application (internal to us) requires authentication.  I've tried appending the username and password to the open method but wasn't able to get it to work.   Is it possible to get the data within the same session rather than creating a new session/login process?
 
 
 

 
 
 
 

© 2000-2004 State of California. Gray Davis, Governor.  
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now