I want to show a dialog message ["internet connection is not avialable"] if i click a login button when internet connection is not available using jquery or java script
Asked
Active
Viewed 559 times
1
-
You can set a timer to periodically run an AJAX get request for a dummy page. Store whether it succeeded or failed in a bool, then check that bool when the user clicks the login button – James Hay Mar 30 '12 at 04:29
-
This might help you: http://stackoverflow.com/questions/2384167/check-if-internet-connection-exists-with-javascript – Ilia Frenkel Mar 30 '12 at 04:30
-
http://stackoverflow.com/questions/189430/javascript-how-to-detect-that-the-internet-connection-is-offline – Mar 30 '12 at 05:05
1 Answers
0

kennebec
- 102,654
- 32
- 106
- 127
-
i am working in mobile apps.sonavigator.onLine is not working in mobile webkit browser.. – Raj Mar 30 '12 at 05:54