Jump to content

About Open URL in default Browser.vi


Recommended Posts

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.

Link to comment

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

Link to comment

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

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.