jquery Programming Glossary: checkconnection
Jquery Plugin for Detecting Internet Connection http://stackoverflow.com/questions/10945759/jquery-plugin-for-detecting-internet-connection required if page can not read it it means internet connection isn't there. Update You can do something like function checkConnection var connected true var img document.createElement 'img' img.src path to remoate image on your server img.onerror function.. image on your server img.onerror function connected false return connected You can use it like this at any time if checkConnection connected Update 2 You can periodically automatically check for it too like this setInterval function var isConnected checkConnection.. connected Update 2 You can periodically automatically check for it too like this setInterval function var isConnected checkConnection checkConnection comes from above code if isConnected alert 'Connected' else alert 'Not Connected' 10000 10000 10 seconds..
how to programmatically check availability of internet connection using jquery http://stackoverflow.com/questions/9478010/how-to-programmatically-check-availability-of-internet-connection-using-jquery the Connection The connection object gives access to the device's cellular and wifi connection information. function checkConnection var networkState navigator.network.connection.type var states states Connection.UNKNOWN 'Unknown connection' states Connection.ETHERNET..
|