LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Source html of activex webbrowser

I'm looking at the webbrowser example in CVI and trying to figure out if there is a way to get a string the html of the page I navigate to.  I don't see any methods in the activex control that would allow me to do this.  I can't use datasocket because I have to go through some secure login pages before getting to the page I'd like to parse.

 

Thanks

0 Kudos
Message 1 of 4
(3,591 Views)

Hello hillb,

Thank you for posting on the NI Discussion Forums.  I believe that you can still use the DataSocket functions to read the html code of the page, but you must format the URL to the page a little differently when it is password protected.  Check out this link for information on how to format the URL with a username and password embedded in it.  The article is mainly written for LabVIEW users, but formatting the URL should work well in the LabWindows/CVI environment as well.

Chris_G
Sr Test Engineer
Medtronic, Inc.
0 Kudos
Message 2 of 4
(3,572 Views)
Thanks but this doesn't apply to my situation.  I could only use datasocket if there is a way to securely connect and encrypt the post information for the login form directly.  I can't find much documentation on doing this and am trying to find a workaround.  I was hoping that somehow just gettign the html from what my activex webbrowser was showing would be easier.
0 Kudos
Message 3 of 4
(3,569 Views)

If the document loaded in the webbrowser activex control is an HTML document, then the attached code (PrintPageBody function) can be used to get the body of the HTML. Look under "MSHTML Reference" in msdn.microsoft.com for more information.

 

0 Kudos
Message 4 of 4
(3,547 Views)