almeida Posted February 28, 2013 Report Share Posted February 28, 2013 Hi, I'm developing a remote application, and I need that a page opens in a web browser on a client machine if an event occurs. Basically, the remote client opens a Login.vi, if the login and password are OK, then a new page opens in a web browser with the second vi. I used the open url block, but it only opens the url in the host machine. Thanks Quote Link to comment
ned Posted March 1, 2013 Report Share Posted March 1, 2013 As far as I know, you can't do it. I don't believe there's a way to tell the LabVIEW plugin (that lets you see a front panel inside a web browser) to send the web browser to a different URL. Quote Link to comment
almeida Posted March 1, 2013 Author Report Share Posted March 1, 2013 I have to agree with you. I guess that a solution might be when a login is OK, display an hyperlink, so the user can click it and open a new tab in a web browser. Im not sure if labview can display an clickable hyperlink in front panel. Quote Link to comment
Phillip Brooks Posted March 1, 2013 Report Share Posted March 1, 2013 I'm not sure if labview can display an clickable hyperlink in front panel. See the attached VI. (LV 8.6) This was a template "About" vi from an old project. All you need is the event structure, the WebLink control and a call to Open URL in Default Browser. About.vi Quote Link to comment
almeida Posted March 1, 2013 Author Report Share Posted March 1, 2013 See the attached VI. (LV 8.6) This was a template "About" vi from an old project. All you need is the event structure, the WebLink control and a call to Open URL in Default Browser. About.vi Thanks Phillip. Unfortunately the Open URL block opens the URL in the host machine, and I need it to open in client machine. One solution is display the link to the user after the condition is achieved, so the user can copy and paste it to the browser. But im still looking for a way to do it automatically. Quote Link to comment
Ton Plomp Posted March 2, 2013 Report Share Posted March 2, 2013 I think this is in general a no-no. What you want is a popup to open. And most modern browsers include a per-default activated pop-up blocker. Perhaps you can overload the html page containing your embedded dialog with some ajax code? Ton Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.