Thank you - making it a function has worked and it all seems fine now.

On Dec 4, 11:32 am, Andrew Leach <[email protected]>
wrote:
> On Dec 4, 9:21 am, ProbablyMike <[email protected]> wrote:
>
> > Yes, IE does not like the map script within a div or table on the page
> > as the API changes the contents of the page.
>
> > If you can't put your code in the head, the second best place is just
> > before your </body> tag.
>
> Or, if your CMS forces you to place code inside a div, make the code a
> function (so it doesn't get executed immediately) and then add that
> function to the onload event, so it's executed once the page is ready.
>
> <script>
>   function myMapLoad () { ... }
>   window.onload = function () { window.onload; myMapLoad(); }
> </script>
>
> Andrew

--

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