LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Web Module VI, how to refresh page or go to external link ?

Solved!
Go to solution

Hi!

 

During Web Module VI development can't find an option to restart application. It can be done with F5 key. In this particular case application keyboard is not an available, only mouse is connected.

 

Is there any possibility to generate event by mouse click and refresh current page or go to another page (web address) according this event ?
 
Thanks a lot!

0 Kudos
Message 1 of 4
(2,590 Views)
Solution
Accepted by topic author Anton.S

Hi IIvan,

 

There is not a  built-in method but you can use the JavaScript Library Interface to call the Location.reload() method from your WebVI. I just tested and was able to refresh from a browser. 

 

For more info, see below link and Call JavaScript From a WebVI shipping example. Tip: Be sure to set the Boolean control to false by default for the case structure below; my browser keep refreshing without it. 

http://www.ni.com/documentation/en/labview-web-module/latest/manual/calling-js-functions-web-app/

 

JSLI with reload.pngJSLI with reload2.png

 

Thanks,

Frank

Message 2 of 4
(2,541 Views)

Many thanks for the detailed description!

0 Kudos
Message 3 of 4
(2,533 Views)

Happy to help!

 

Thanks,
Frank

0 Kudos
Message 4 of 4
(2,527 Views)