On Oct 23, 11:02 am, Jens <[EMAIL PROTECTED]> wrote:
> 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.

Yes. The link is available and can be clicked before the map is
created. The map is only created when the onload function is run,
after all those images have been downloaded.

> So, first question: what can we do to prevent this error?

When the page is loaded initially, DON'T have a "Karte einblenden"
link. Make that text say something like "Karte in Vorbereitung" and
then change that to a real link with the right text in the onload
function after the map has been created.

> Second question (less important): Why is the IE affected only?

Firefox does report an error, but it's not fatal.

> Additional information:
> - The error only appears when the map will be displayed very quickly
> after accessing the page.

There's a timing issue; the error only happens if you click the link
while the page is still loading and the map hasn't been created.

> - We were not able to reproduce this error on every computer running
> IE7 (same builds).

Different machines have different timing, or different caching
policies...

> - On IE7 the error appears, but the map loads properly. On IE6 the map
> will not load.

IE6 treats every error as fatal. Maybe IE7 doesn't (I don't have IE7).

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