TeddyBillewicz
Programmer
In order to parse elements (for further processing in VFP) I need to extract the actual HTML-Code from a running browser.
Approach 1:
Using the basic technique from thread184-1207892 I built a form that uses the web browser ole control. In a commandbutton I'm using
to get a reference to the document but fail to find the pertinent properties (for example to access the HTML). Is there some documentation for the object model of this ole control or does anyone know how I could get a hold of the actual HTML the way it would be shown in a regular browser with right-click on the browser and "view source HTML code" (this may not be translated correctly, but is the function that shows the web site's HTML in IE, Chrome or Firefox)?
Approach 2:
Can I get access to an external browser (Chrome, Firefox, Internet Explorer) and then extract that same information simply while the user is online with his own browser?
Either approch could work for my application. I just don't know how to implement it under VFP 9.0 (SPK 2)
TIA for any help or suggestions
Teddy
Approach 1:
Using the basic technique from thread184-1207892 I built a form that uses the web browser ole control. In a commandbutton I'm using
Code:
LOCAL loDoc
loDoc = THISFORM.Olecontrol1.object.Document
loDoc.focus() && document must have focus
to get a reference to the document but fail to find the pertinent properties (for example to access the HTML). Is there some documentation for the object model of this ole control or does anyone know how I could get a hold of the actual HTML the way it would be shown in a regular browser with right-click on the browser and "view source HTML code" (this may not be translated correctly, but is the function that shows the web site's HTML in IE, Chrome or Firefox)?
Approach 2:
Can I get access to an external browser (Chrome, Firefox, Internet Explorer) and then extract that same information simply while the user is online with his own browser?
Either approch could work for my application. I just don't know how to implement it under VFP 9.0 (SPK 2)
TIA for any help or suggestions
Teddy