Hi,
We are using a template file more like a blog template file and in the
template file we have added the onload and onunload event for the
maps.
<body OnLoad="initialize()" OnUnload="GUnload()">
But since not all pages that will use the template will have maps so
an error regarding the script is appearing.
Is there a way to instruct the GUnload() event to only do the unload
if the map exist?
As for the initialize script, what we did is just added the script in
the head of the page but emptied the function.
<script type="text/javascript">
//<![CDATA[
function initialize() {}
//]]>
</script>
<div class="picborder" id="map_canvas" style="WIDTH: 0px; HEIGHT:
0px"></div>
Is there a better way to do this so that no script error will appear
when browsing the pages?
Thank you.
Best regards,
Aries
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---