I\'m trying to get a pop-up to, well, pop up when there is no internet connection on the device.
I got the following example working, but now I want the alert only to sh
if you do
if (states[Connection.NONE]){ alert('Geen internet :('); };
this would happen. do this.
networkState = navigator.network.connection.type alert(states[networkState]);
see if this works for u or not.
EDIT: just compare:
if (networkState == Connection.NONE){ alert('no internet '); };