December 21st, 2006

Google Maps causes Internet Explorer to crash

I was working on a site the other day, and I came across the error on a page that I've never seen before. The page had an embedded Google Map, and there was a JavaScript function to display the map. The page worked in FireFox, but when I ran it in IE, I got the following JavaScript error:

Internet Explorer could not open the internet site.
Operation aborted.

And not one bit of the page would display.

I dug around online, but couldn't find anything. On a complete whim, I decided to try to move the showMap() function into the window.onload() handler. And crazily enough, it worked! So the whole error was caused by the showMap() being run before the page had fully loaded. Insane…

3 Responses to ' Google Maps causes Internet Explorer to crash '

Subscribe to comments with RSS or TrackBack to ' Google Maps causes Internet Explorer to crash '.

  1. SEO Services said,

    on December 22nd, 2006 at 8:55 pm

    A great pick up Justin. So good I made a Digg about it and it points to here!

    Col :)

  2. Nick said,

    on January 11th, 2007 at 6:37 am

    Cheers for the tip, saved me a headache or two.

  3. ml said,

    on February 6th, 2007 at 9:00 am

    Another sort of "on a whim" solution found here:

    http://vidmar.net/weblog/archive/2005/08/22/2121.aspx

Leave a reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image