title: How to check for connectivity with server using javaScript from native Android 2.1 browser?
body: <p>I am building a web application that needs to be working seamless when being online or off line. For this need to be able to <strong>check my connection with the server</strong>. </p>
  
  <p>The main devices that are to be supported are iphone3+4, ipad, a netbook with chrome and android 2.1+. </p>
  
  <p>The <code>navigator.onLine</code> is not exactly what I am looking for. This is unreliable and only checks if you have connectivity, not if you are connected to a specific server.</p>
  
  <p>I tried <code>jQuery.getJSON</code> to connect to a ping web-service on my server. This works fine in chrome on the netbook but the native android browser returns null. Ipod touch doesn't do anything at all.</p>
  
  <p>I could use some help with this..</p>