Anyone got any suggestions as to the best way to check for an active internet connection? It needs to run from within a widget, and preferably give me a result I can access with Javascript. Any ideas, email me please!
Recent Posts
Recent Comments
- Tester on British trains suck
- Helmut on Beta time again
- idlefrog on Beta time again
- Ian on Lion Compatibility
- NationalInfo.com on eBay’s fraud problem
Archives
- July 2011
- December 2010
- June 2010
- November 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- June 2008
- September 2007
- August 2007
- July 2007
- April 2007
- March 2007
- October 2006
- September 2006
- August 2006
- July 2006
- May 2006
- April 2006
- March 2006
- November 2005
- October 2005
- September 2005
- July 2005
- June 2005
- May 2005
- April 2005
Hi, I used XMLHttpRequest for my one:
http://www.bbc.co.uk/radio/prototypes/listenlive/
Basically I am making a request to a site, if it comes back then bingo you have a connection. I’m sure there is a better cool way using apple script, I just don’t know it. Hope this helps.
Duncan
That’s a decent idea – and a very sexy widget there Duncan!
Well, I tried that – with a slight modification to only place the buttons if the connection’s actually successful. But – there appears to be a dashboard bug where the html code is reported as “undefined” until you’ve refreshed twice, whether you’re connected or not. which rather screws up the detection routine…