Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obtaining full HTML source from WebBrowser control
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00647241
Message ID:
00651972
Views:
18
>>If you want the source, get it directly from the URL using winsock or wwipstuff :-)
>
>Interesting point, Gérald. I'll take your word for it that even document.documentElement.outerHTML is not quite exactly what I was looking for. But there is still one way that would seem to do the trick, assuming that the prompt can be suppressed, which is to use the document.execCommand('SaveAs') method. Note that the scenario of interest to me is one that begins with a WebBrowser control, already navigated to the page in question. I would expect to encounter all sorts of complications trying to get back to that page via winsock or wwipstuff, e.g. if it had been dynamically generated in response to a form, or there had been some password manually entered prior to getting to this page.
>
>Mike

Using the document's methods and properties you will get all the content of the document, but parsed by the control. What i said was that if you wish to get the "original" page, you are out of luck with the control.

BTW, what are you tryng to get that is not there?
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform