LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Internet Toolkit. Using CGI/HTML within A VI. Form Tags.

Hello,

I have a VI and I would like to RUN this HTML within my VI.

Here is an example of the HTML:
[code]



[/code]
If you write this code in a plain HTML doc, and view it...you will see a button named "GO!".

This CGI script will not be running on the "localhost", instead I will be pulling it from my remote webserver. I am lost, and I am not sure if the NI "Internet Toolkit" will display the formated "GO!" HTML button in my VI.

Examples, and suggestions are welcomed.

Thank you,

Doug

Message Edited by Dhubbell on 03-14-2005 06:38 PM

0 Kudos
Message 1 of 4
(3,279 Views)
Sorry,

I guess this forum does not recognize [code] [/code] tags.

form name="form1" method="post" action="http://myremoteserver/cgi-bin/search.pl"

input type="hidden" name="terms" value="SEARCH-VARIABLE"
input type="submit" name="Submit" value="GO!"

form

I removed some of the <> so you can view the code.

Doug
0 Kudos
Message 2 of 4
(3,267 Views)
Hello Doug,

It is best to use an embedded web browser in your front panel if you wish to use embedded HTML code. Please see the link below for an example of using activeX to embed an internet explorer window in LabVIEW.

Building a Simple Web Browser Using ActiveX

Please let me know if you have any other questions regarding this issue.

Regards,

Matt F
0 Kudos
Message 3 of 4
(3,243 Views)
Hi Doug,

with the Internet toolkit (ITK) you can start a webserver which is able to run CGI Programs. These programs are written of course in LabVIEW and are therefore VIs. Your example should end in search.vi and not in search.pl.
The ITK has some VIs which will support you in creating a HTML document by inserting some of the tags. It also has VIs giving you the data supplied by the browser. You are able to create any HTML document you want.
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 4 of 4
(3,242 Views)