Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Extracting HTML from Web Browser control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00573402
Message ID:
00573429
Vues:
19
>>>>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.

I think I found it...how about the Busy property? Seems to work as long as the page is available...it blows up if for some reason it can't find the page.
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform