incrediumy

Help

Tuesday, 28th June 2005, 2:50 pm

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!

3 Responses to “Help”

  1. Duncan Ponting Says:

    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

  2. Hawkman Says:

    That’s a decent idea - and a very sexy widget there Duncan!

  3. Hawkman Says:

    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…

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Use the links on each comment to quote them, or .