If you use Google maps it’s important to use GUnload on the page’s unload event. It’s ok when you can access the body tag directly. But if you have the Google map functionality wrapped inside an ascx you need a different approach.

In fact is very easy to use jQuery to “catch” the unload event. In case anyone else needs it:

$(window).unload( function () { GUnload(); } );
0 Shares:
Leave a Reply

Your email address will not be published. Required fields are marked *

19 − 19 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.

You May Also Like

jQuery: Setting cookies

Setting and clearing cookies with jQuery is really easy but it's not included in the jQuery core and requires a plug-in. This post shows how to set, get the value of and clear cookies with jQuery.

Spectrum – Perfect jQuery Color Picker Plugin

Spectrum is a jQuery colorpicker plugin that probably comes with all the features you are looking for. It is image-free (only CSS and JS) and can be used for all browsers or only as a polyfill for the input[type=color] of HTML5.