Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parsing incoming HTML
Message
From
06/04/2000 13:24:19
 
 
To
06/04/2000 12:29:36
Dave Nantais
Light speed database solutions
Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00356356
Message ID:
00356390
Views:
12
Dave

>I would like an entity that places HTML content into a Foxpro table AS a user is browsing the internet.
>A user will be browsing the web with Internet Explorer; as the user moves from internet site to internet site I would like to place the HTML content of each site into a VFP memo field automatically.

It can be done Using a Web Browser control on a VFP form or a VFP-controlled instance of Internet Explorer. You can use the OuterHTML or InnerHTML objects of the Document Object Model to store the HTML to your Fox table, based on an event firing that indicates that the web page has loaded.

In Web Browser control, this would be something like the DocumentComplete, DownloadComplete, or NavigateComplete2 event methods.

You will have problems if the user does a SHIFT-CLICK to open a new instance of IE, which you now do NOT control, but there's probably a way to trap that in the Navigate2 method and disallow that.

Sorry, I don't have a working sample for you, but there are plenty of messages here on how to use the Browser Control or automate IE from VFP.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Reply
Map
View

Click here to load this message in the networking platform