>
> But it does get called if MooTools is not loaded? You have tested
> that?
>
Without MooTools, I can use the onload event in the <body> tag, and it
functions correctly.
>From what I have read, and this only is a problem in IE.
In Chrome and Safari (both based on WebKit), and FF, there is no
problem at all in tests with my code, *only* IE.
In looking around for others having problems with Gmaps loading in IE,
it was suggested that if Gmaps started to load before the page was
done, it created problems, and that this could be solved by making
sure the Gmaps where initialized with the onload event.
Indeed, this is how it is normally done, and how examples and
tutorials at Google do it: In the <body> tag onload event.
But with MooTools, calling the initialization function which is inside
the 'domready' wrapper, from the onload event in the <body> tag does
not work.
This is why I was using:
window.onload = init;
Although, your suggestion
window.addEvent('load',init);
works as well, but does not solve my IE issue... I would love to post
a URL, but there are unfortunate reasons why I can not.
I'm using Gmaps with MooTools because I need MooTools for some
complicated UI functionality.
But you've been helpful, thanks!