LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I post data in HTML fields

Hi.

I need to log onto a web server from LabVIEW 7.1. I have this working in VB, but I don't know how to use the Microsoft Web Browser ActiveX object (specifically how to find the types of some variants).

In VB, I'd do the following to post data into two fields and click a button:

WebBrowser1.Document.frames(1).loginform.UserName.Value = "username"
WebBrowser1.Document.frames(1).loginform.Password.Value = "password"
WebBrowser1.Document.frames(1).loginform.Item(2).Click

From the web browser object in LV I can navigate to the URL, and decode the Document variant which seems to be of type MSHTML.DispHTMLDocument. How do I proceed from here? How do I access the different frames, forms, data fields and buttons on the web page?


Since variants in LabVIEW carry type descriptors internally, it'd be nice to have some way to access this so I wouldn't have to guess what object prototype to convert the variant with.

Regards
Steen Schmidt
CLA and CTA. Worked with LabVIEW from 4.0 to 2010 and counting...
0 Kudos
Message 1 of 2
(2,901 Views)

Hi Steen,

I was workin in an application of accessing frames, forms and then buttons in web pages in background...

In labview there was a problem in the MSHTMLDocument.frames functions and so will not be able to get the frames ..

but it is possible to access forms in a page directly...i have an eg for searchin in google..(i have attached the vi)

I need to know whether it is possible in VB to go to a particular frame in a page and then if the frame has a form i need to login in form in that frame...

Could you please share me the code in VB (for the same)..so that it would be helpful for me...and also is it possible to make dll in vb and use in other enviorment like VC++..
 
REGARDS
vevek
0 Kudos
Message 2 of 2
(2,776 Views)