On Jan 6, 11:20 pm, staticz <[email protected]> wrote:
> Hey everyone, I am having troubles implementing a small map for a
> client. Seems to work perfectly in Chrome, but I cannot get it to
> display in Firefox or IE. I did not see any errors in the Javascript
> in Firebug. The site uses a funky CMS but it doesn't seem like it
> would matter since it works fine in Chrome.

Different browsers interpret invalid HTML differently. You have a
<body> tag in the middle of the page's body. Firefox and IE are
[correctly] ignoring its onload attribute; Chrome isn't.

You need to add the initialize() function to the page's onload
handler, and you can't do that by inserting an additional <body> tag
in the page. Use
  window.onload=function(){window.onload;initialize();}
and do the same to add GUnload() to the page's onunload handler.

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