Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read the html from a web page
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01604557
Message ID:
01604613
Vues:
76
Neither of these will work unless you wait for the page completion... (IOW, you have to monitor ReadyState).

Nor does that give you the full document, or even the original HTML document. IE loads up a local DOM version of the text, and then returns its DOM interpretation which is usually different than the raw HTML.

IOW, be careful relying on IE to capture HTML.

+++ Rick ---

>>
>
oIE = createobject('internetexplorer.application')
>oIE.Navigate('www.tek-tips.com')
>lcStr=oIe.Document.body.innertext
>?lcStr
>
>or
>
>
oIE = createobject('internetexplorer.application')
>oIE.Navigate('www.tek-tips.com')
>lcStr=oIe.Document.body.innerHTML
>?lcStr
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform