[Javascript] Detect internet connection

Kim Hoogenberg kim.hoogenberg at virgil.nl
Wed Feb 16 06:50:26 CST 2005


Isn't it an idea to use the xmlhttprequest object to query an url like 
google.com or something and then catch an open() failure? If you get a 
http 200 status code, there's definitely an Iternet connection...

Kim

>The only thing I can think of that does this is Yahoo Messenger. Quite
>whether you can hack it for your own use is another matter !
>
>Tim in Ireland.
>
>----- Original Message ----- 
>From: "Tim Burgan" <email at timburgan.com>
>To: "[JavaScript List]" <javascript at LaTech.edu>
>Sent: Wednesday, February 16, 2005 9:46 AM
>Subject: Re: [Javascript] Detect internet connection
>
>
>  
>
>>Rod Coate wrote:
>>
>>    
>>
>>>I.E. Can you tell if a client machine has a connection to the internet.
>>>      
>>>
>>That's the one!
>>
>>
>>
>>_______________________________________________
>>Javascript mailing list
>>Javascript at LaTech.edu
>>https://lists.LaTech.edu/mailman/listinfo/javascript
>>
>>    
>>
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20050216/2d271590/attachment.htm>


More information about the Javascript mailing list