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:
00651937
Views:
18
This message has been marked as a message which has helped to the initial question of the thread.
>Hi Vlad,
>
>Thanks for the tip. This is the closest I've yet seen to what I was looking for. Note, however, that it doesn't quite pick everything up: it doesn't get the outer HTML tags, for example. It does get the HEAD section, however. I'm not sure if it's possible for this to miss anything sandwiched between the initial HTML and HEAD, and it definitely is not quite as complete as View Source.
>
>Mike
>

You will never get the original source from the control.

The WebBrowser control parse the original source and place all the content in its own object model.

What you get when you query the innerhtml is the "fonctionnal" parsed html code.

You can test it easily, write a simple HTML page and play with the code: change the position of parameters in some tags and thing like that.

Check the innerhtml after the changes and you will get always the same code reordered. Try with a really simple test like "< font face=arial color=#000000 >some text < /font >" in the body of your html page. The innerhtml of the body will return "FONT" instead of "font" and if you move the "color" parameter in front of the "face" parameter you get exactly the same result.

If you want the source, get it directly from the URL using winsock or wwipstuff :-)
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