Re: [whatwg] isBrowserOnline vs navigator.onLine

2005-10-10 Thread Ian Hickson
On Sun, 9 Oct 2005, Erik Arvidsson wrote:
>
> Both IE and Mozilla supports navigator.onLine to detect whether the user 
> agent is in on line or off line mode. Would it not be better to use this 
> existing solution instead of adding a new attribute to the Window 
> interface?

Yes! I didn't even know about navigator.onLine. I have changed the 
definition to use that instead of adding something new. (I've left the two 
events in, though; does IE have events for that too? I couldn't find any.)


On Sun, 9 Oct 2005, Dave Hyatt wrote:
>
> WebKit now supports this too (not released yet, but in our tip of tree 
> it does).

Great!


On Sun, 9 Oct 2005, Brad Neuberg wrote:
>
> I just tested navigator.onLine in Firefox and it
> returned undefined. I used
> javascript:alert(navigator.onLine). It works in IE. Is
> it supposed to work in Firefox? How does a user move
> into offline mode in that browser?

It certainly works in recent trunk builds. You can go offline using File | 
Work Offline.

Thanks,
-- 
Ian Hickson   U+1047E)\._.,--,'``.fL
http://ln.hixie.ch/   U+263A/,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


Re: [whatwg] isBrowserOnline vs navigator.onLine

2005-10-09 Thread Lachlan Hunt

Brad Neuberg wrote:

I just tested navigator.onLine in Firefox and it returned undefined.
I used javascript:alert(navigator.onLine). It works in IE.


That works for me in Firefox 1.5b2.


Is it supposed to work in Firefox? How does a user  move into offline
mode in that browser?


File>Work Offline


--
Lachlan Hunt
http://lachy.id.au/



Re: [whatwg] isBrowserOnline vs navigator.onLine

2005-10-09 Thread Brad Neuberg
I just tested navigator.onLine in Firefox and it
returned undefined. I used
javascript:alert(navigator.onLine). It works in IE. Is
it supposed to work in Firefox? How does a user move
into offline mode in that browser?

Best,
  Brad

--- Dave Hyatt <[EMAIL PROTECTED]> wrote:

> WebKit now supports this too (not released yet, but
> in our tip of  
> tree it does).
> 
> dave
> 
> On Oct 9, 2005, at 8:40 PM, Erik Arvidsson wrote:
> 
> > Both IE and Mozilla supports navigator.onLine to
> detect whether the  
> > user agent is in on line or off line mode. Would
> it not be better  
> > to use this existing solution instead of adding a
> new attribute to  
> > the Window interface?
> >
> > -- 
> > erik
> >
> 
> 



Re: [whatwg] isBrowserOnline vs navigator.onLine

2005-10-09 Thread Dave Hyatt
WebKit now supports this too (not released yet, but in our tip of  
tree it does).


dave

On Oct 9, 2005, at 8:40 PM, Erik Arvidsson wrote:

Both IE and Mozilla supports navigator.onLine to detect whether the  
user agent is in on line or off line mode. Would it not be better  
to use this existing solution instead of adding a new attribute to  
the Window interface?


--
erik





[whatwg] isBrowserOnline vs navigator.onLine

2005-10-09 Thread Erik Arvidsson
Both IE and Mozilla supports navigator.onLine to detect whether the user 
agent is in on line or off line mode. Would it not be better to use this 
existing solution instead of adding a new attribute to the Window interface?


--
erik