Use jQuery to replace <body onunload="GUnload()">
When using Google maps it’s important to use GUnload on the page’s unload event. Fine 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.
After a big of digging I found how to use jQuery to “catch” the unload event. In case anyone else needs it:
$(window).unload( function () { GUnload(); } );
This entry was posted by nerdboy on Monday, January 26th, 2009 at 5:03 pm and is filed under Javascript. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response below, or trackback from your own site.