Cool-LV Posted May 22, 2006 Report Share Posted May 22, 2006 hello, As I use "Open URL in default Brower.vi" ,I found it can open an URL address. but, As I want to open the other address( The other URL) , this vi will replace the openned one, can this vi open(create) a new window ? not replace openned window ? or do you have any good suggestion about openning URL , thanks in advance. Quote Link to comment
Aitor Solar Posted May 22, 2006 Report Share Posted May 22, 2006 Open in Default Browser uses DDE to pass a "WWW_OpenURL" command to the default browser defined in Windows register, and if that fails it uses a System Exec call to the browser executable. Depending on the browser you are using, you can add other parameters to WWW_OpenURL, as WindowID to specify the target window, or use other commands to create a new window and then open an URL in that. Otherwise, you usually (Firefox, Mozilla...) can define the browser behavior referring to urls coming from external applications, so it launches them in a new window / tab. Saludos, Aitor P.S.: Oh, and of course it would be better to use ActiveX, in your browser allows for it. Saludos, Aitor Quote Link to comment
crelf Posted May 22, 2006 Report Share Posted May 22, 2006 You might be able to use the target="_blank" HTML tag - do a web search on it and have a look at how it is used. P.S.: Oh, and of course it would be better to use ActiveX, in your browser allows for it. Wellll - yes and no. It depends on what you're trying to acheive: ActiveX is a very specific call into the engine, and replying on it means that you may be relying on that your users have the same version of windows that you do (Microsoft can, and does, change ActiveX prototypes and availabilities between versions). Also, using ActiveX isn't platform independant. The upside of ActiveX (especially in this case) is that you can embed an ActiveX window in your LabVIEW front panel and run your web browser there (see example below). Download File:post-181-1148299584.vi Quote Link to comment
Cool-LV Posted May 23, 2006 Author Report Share Posted May 23, 2006 or use other commands to create a new window and then open an URL in that... Thanks All, Yes, I have used creating a new window and opne an URL to achieve. 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.