Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using _webbrowser4
Message
From
20/01/2005 16:02:11
 
 
To
20/01/2005 15:32:30
General information
Forum:
Visual FoxPro
Category:
Internet applications
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows 2000 SP3
Miscellaneous
Thread ID:
00979036
Message ID:
00979053
Views:
9
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform