And LO! There was cancelage of the bug.
Talked with some google peeps, and some of the strangeness has to do
with browser quirks.
Basically, if you want to load a google api you have to put
"google.load(apiname,version);" in the head of the document OUTSIDE of
any function.
if you're a jQuery user and are using onready or the body's onload to
load your apis (possibly for page performance reasons) you need to
call the load function with an extra argument like this
"google.load(apiname,version { callback:function() {} } );"
where the function can be anonymous or declared somewhere.
EXPLANATION
What's happening is without the callback attribute of the extra
argument the .load function uses document.write and blows up your
html... but this only happens if your html is already loaded (such as
when using onready and onload).
There's a final, hybridized version available here:
http://dev.y2g.org/?page=postDOM_3
Ignore the text. It's old.
Feel free to comment or message if you need help.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---