javascript - How can I detect internet connection in Asp.Net MVC to use Google Maps? -


I am developing an ASP.Net MVC application which uses Google Maps to display the address in the map. The problem is that I have to demo the app in an environment that does not connect to the Internet. How can I find out with a script that disconnects the app to call Google Maps API functions?

Similar to this one, I believe it would be an easy way to find offline and online To make sure that your MVC application is accessing the web, AJAX is firing calls.

One thing you can think of, the Google Gears API will allow you to work with Google Maps offline. Either I understand that, though it has not tried it personally ... nevertheless :).


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

jquery - SimpleModal Confirm fails to submit form -