My web application works on multiple handheld devices like iPads Galaxy tabs etc. Application request images from the server and render in on the Clients.
Now the problem is sometimes happens, that network connectivity is lost during the rendering of images, than that time that html no-image icon is shown on the devices...
I want to handle this situation gracefully, at the time of network loss , I want to capture that and show a alert to user that no network connectivity or something...
I tried to user navigator.onLine
event.. but it is not working on all set of browser that I am support like, 5-6 version on mozilla etc.
And also my application will run only on wifi local network... May or may not be connected to internet.. will in that suitation also this navigator.onLine
works..?
Please provide me any other better way to do this...