The following sequence of coding ...

<head>
<script type="text/javascript" src="http://www.google.com/jsapi?
key=<APIKey>"></script>
<script type="text/javascript">
//  Mapping init();
</script>
</head>
<body onload="javascript:google.load( 'maps', '2' );
google.setOnLoadCallback(alert('Boo!');init(););" onunload="GUnload
()">
<!-- page HTML -->
</body>

... results in the page HTML being displayed until the "Boo!" message
is appears, just before which the screen goes blank, and upon
inspection afterwards the body element of the page DOM has been
killed, there is only a head element.  Putting the google.load
( 'maps', '2' ) statement before the HTML avoids this behaviour.
Surely this can't be right?  What if it is desired to load the maps
API conditionally on whether the user presses a map button?

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to