John Joyce
3/4/2007 10:38:00 AM
Code for each browser is most appropriate, but some browsers lie or
can lie when doing browser sniffing.
So this is probably (currently) unreliable.
New Tab or New Window is, like CSS often up to the user ultimately,
so probably better if you don't try to control it.
Better to aim for reliably predictable functionality
On Mar 4, 2007, at 6:09 PM, Sebastian Hungerecker wrote:
> Clifford Heath wrote:
>> Is there a standard cross-platform way in Ruby to drive the user's
>> default web browser to open a URL in a new window/tab? Because if
>> not, I have code samples for all major platforms and will create a
>> gem.
>
> Does "all major platforms" include Linux/Unix? If so, how do you
> find out what
> the user's default browser is there?
>
> --
> NP: Dream Theater - Honor Thy Father
> Ist so, weil ist so
> Bleibt so, weil war so
>