Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieving HTML from the web browser Active X control
Message
From
12/04/2000 22:52:04
 
 
To
12/04/2000 22:13:31
Dave Nantais
Light speed database solutions
Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00358835
Message ID:
00359094
Views:
13
>>>I have set up a web browser Active X control on a form and it runs great.
>>>
>>>But, I would also like to store the incoming HTML code into a foxpro table or into a foxpro memory variable.
>>>
>>>I was told something about InnerHTML or OuterHTML properties holding onto the HTML information. But, I cannot find these properties.
>>>
>>>Any suggestions?
>>
>>You can use oIE.Document.Body.OuterHTML.
>
>there is no oIE object
>
>There are only 2 objects
>The form called 'form1'
>the active x control web browser called 'olecontrol1'
>i tried using olecontrol1.document.body.outerHTML but the 'document' object does not exist in the olecontrol1
>


>how do i create this oIE object?

oIE is just the name that I commonly use to reference a WebBrowser control or an instance of InternetExplorer.Application. You can rename your "olecontrol1" to oIE, or anything you like.

The document object does not exist until a document is loaded into the Webbrowser control, and that's why you got an error when you tried to reference it. That means finished loading. Because the Navigate method is asynchronous, you have to poll oIE.ReadyState before you can refer to the document object.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform