On Jun 24, 12:18 am, Donovan Walker <[email protected]> wrote: > It looks like your example code works because "google.load('maps'.." > is called BEFORE the DOM is initialized. > If one calls "google.load('maps'.." after the DOM is fully loaded (via > the body's onload tag) the page is still 'destroyed' as it were.
No. This is the **Ajax** loader! You don't load the Maps API with the <script> tag. That tag loads the **Ajax loader**. After doing that, you still have to tell the loader to load the **maps API** and wait for it to be fully loaded, otherwise the maps functionality is not there. > I'd call this a rather serious issue with the loader and the maps > lib. > Examples belowhttp://dev.y2g.org/?page=preDOM > http://dev.y2g.org/?page=postDOM You have two script tags in that 'postDOM' page, but in any case, there's no issue here. As mentioned in my earlier post, the documentation shows you exactly how to do it. > Do you work for google Marcelo? If not I'll post this as it's own > topic, hoping to get their attention. I don't work for Google, and you're free to post another thread if you like, of course, but I wouldn't recommend insisting on an issue that is not an issue. -- Marcelo - http://maps.forum.nu -- > > On Jun 23, 2:34 pm, Marcelo <[email protected]> wrote: > > > On Jun 23, 6:54 pm, Donovan Walker <[email protected]> wrote: > > > > A (much) simpler demohttp://dev.y2g.org/?page=map_1 > > > You're calling google.load() before you load the API script. > > If you use the callback function google.setOnLoadCallback(), (as shown > > in the documentation), then nobody gets killed. > > ;-)http://maps.forum.nu/temp/gm_api_vs_dom.html > > > -- > > Marcelo -http://maps.forum.nu > > -- > > > > Arrived at this demo by > > > going through the old one and stripping out first all code not needed > > > to launch the map, (including jQuery and all other libs) > > > simplified the html a bit. Moved map to just under the body tag > > > removed all stylesheets > > > removed all non-essential html. > > > > Can anyone give me some pointers here? > > > > FYI, the link from my previous post ATM is just like this one. > > > > Marcelo - It occurs to me, do you use source from > > > "http://www.google.com/jsapi?" or are you using the older "http:// > > > maps.google.com/maps?" > > > > On Jun 23, 11:10 am, Marcelo <[email protected]> wrote: > > > > > On Jun 23, 5:56 pm, Donovan Walker <[email protected]> wrote: > > > > > > Please help! :) > > > > > You need to come up with a simpler demonstrator than that. > > > > It has never happened to me that the DOM tree was destroyed by loading > > > > the API, and your page loads lots of other scripts, including jQuery > > > > and Analytics. > > > > Try making a simple demo in a separate page, which just loads the API > > > > and see if the DOM tree is still there. Chances are that the problem > > > > is elsewhere, or that it is produced by some clash between the many > > > > libraries that you are loading. > > > > > Also, while putting together a simpler demo, you might find the > > > > problem by yourself. > > > > > -- > > > > Marcelo -http://maps.forum.nu > > > > -- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
