Wasn't it borzoi who wrote:
>http://www.arbea.basilicata.it/index.php?option=com_content&task=view&id=27&Itemid=64
The crash on that page occurs after the API has successfully geocoded
the address, and is attempting to create the map. One of the first
things that the API does when you create a map is to destroy the
existing contents of the map container, using this line of code:
function Ji(a){var b;while(b=a.firstChild){Ii(b);a.removeChild(b)}}
In your Opera error log you'll see that it reports the error:
Could not convert undefined or null to object
On this statement
while (b = a.firstChild)
which suggests that your document.getElelementById("map") is null.
I don't have an Opera debugger, so I can only guess that it's a timing
issue. Opera could be so slow at parsing the HTML that it hasn't managed
to parse the
<div id="map" style="width: 550px; height: 550px;"></div>
by the time that the geocoder reply comes back from Google.
Try creating the map container before running the Javascript. Either
place your script at the bottom of the page, just before the </body>, or
put it inside an onload function.
--
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---