Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extracting HTML from Web Browser control
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00573402
Message ID:
00573418
Views:
18
>>>Hi all,
>>>
>>>I have an instance of the Web Browser control on a VFP 7 form. I've successfully navigated to the desired URL.
>>>
>>>How do I now gain access, programmatically, to the HTML code for that URL? I need to parse the HTML for a particular tag, and would like to use the new STREXTRACT function of VFP 7 to search for the value associated with the tag.
>>>
>>>TIA,
>>
>>
Thisform.WebControl1.document.documentElement.innerHTML
>>HTH
>
>Hi J,
>
>That gives me a "Member DOCUMENT does not evaluate to an object" error...then the page finishes loading...THEN it works perfectly (right now, I'm saving it to a text file with STRTOFILE() just so I can see it).
>
>Do I possibly need to wait for the page to finish loading before I fire this code? Is there some type of a property of the Browser control which I can monitor that tells me when the page is finished?
>
>Appreciate all your (quick) help...

Wait, where do yo have this code and where do you have the Navigate?

The other piece will still give you an error if the page hasn't loaded.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform