Move all your javascript into the <head> section of the document.
IE has problems with javascript mixed inside the HTML.

--
Marcelo - http://maps.forum.nu
--


On Oct 23, 12:02 pm, Jens <[EMAIL PROTECTED]> wrote:
> Hi everyone!
>
> We use the Google-Maps-API on our website simply to show markers
> according to job offer 
> addresses:http://www.kunststoffweb.de/karriere/angebote.asp
>
> Our page is in german so in order to display the Google Map you have
> to click on the map-thumbnail (alternatively on "Karte einblenden").
>
> So what's the problem?
> We encounter a JavaScript-error using IE6 or IE7 when we display the
> map BEFORE the page is fully rendered (at least it seems so). When
> using FF, Safari or Chrome displaying map works fine every time.
>
> The affected script line is 317 in which map.checkResize(); is
> executed ("map is null or no object") after the display-style has been
> turned from "none" to "block". Obviosly the browser tries to execute
> map.checkResize(); before the Google Map is fully initialized.
>
> So, first question: what can we do to prevent this error?
> Second question (less important): Why is the IE affected only?
>
> Additional information:
> - The error only appears when the map will be displayed very quickly
> after accessing the page.
> - We were not able to reproduce this error on every computer running
> IE7 (same builds).
> - On IE7 the error appears, but the map loads properly. On IE6 the map
> will not load.
>
> Thanks in advance.
>
> Best regards from Germany,
> Jens
--~--~---------~--~----~------------~-------~--~----~
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