04-20-2011 03:41 PM
I have an application that has a number of pop-up windows. Some of these are the built-in "File Dialog" VIs & some of them are my own modal windows (open when called, close when done). I have about 5 of my own and several built-in ones (like Yes/No Dialog boxes).
I want to run a Web Server or VI Server to this application and am not sure how to best handle these pop-up windows. I would guess I would need a separate Web Publishing .htm file for each window, but of course the File Dialog does not have one. And I'm not sure what is the best approach using the VI Server.
Any suggestions? I do not want to make an executable in my case as the program needs to run locally but be accessed remotely.
04-21-2011 11:49 AM
The popups you're talking about called from the File Dialog VIs are windows system dialog boxes. These will need to be opened by a program on the remote machine somehow. This can be done either by remotely executing the code or modifying the code to use a different type of popup box native to whatever environment your client is running (for instance, google chrome has a prompt box). If you're running the whole thing in HTML you might look at http://www.javascripter.net/faq/confirm.htm for info on how to write a simple javascript dialog. I'm not sure I completely grasp your application, but regardless you're going to have to manage those popups from the remote execution environment. Just make sure you understand that the File Dialog ones are coming from windows system calls.