Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using _webbrowser4
Message
De
20/01/2005 16:02:11
 
 
À
20/01/2005 15:32:30
Allen Hanna
H. A. Hanna Associates
Indianola, Indiana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows 2000 SP3
Divers
Thread ID:
00979036
Message ID:
00979053
Vues:
8
>I'm using _webbrowser4 in a VFP6 form and I would like to capture the html of the current url, either to a memory variable or write it to a file. So far I can't see how to do that. Any suggestions?

When I wrote the _webbrowser4 subclass, I exposed a property called .cSourceHTML but it only works for files and not HTTP URLs. So the way you get the actual HTML source from a typical web page is to go directly to the IE web browser DOM (document object model) using the line of code below:

cHTML=_webbrowser4.document.all.item(0).outerhtml
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform