Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Help getting InternetExplorer.Application to work

Posted on 2004-04-14
3
Medium Priority
?
1,786 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

610 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