Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    May 2007
    Posts
    162
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Google Maps V3--map doesn't load in IE--only loads on refresh

    I'm very close to completing this map, but it's 2 steps forward 1 step back. Now that I'm basically done, with help from this forum, IE (8 or 9) isn't loading the map on initial visit to the page: http://www.wrh.noaa.gov/mfr/rec/v2/ I have to refresh the page, and then the map and sidebar displays. I tried the settimeout on line 599 from other posts with similar problems, but have commented it out. The settimeout did force IE to load the map, but then I got an el not defined type of error.

    Any ideas how I can get this map to load in IE as well as the currently functional FF and Chrome?

    Thanks for any help, S

  • #2
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,760
    Thanks
    55
    Thanked 516 Times in 513 Posts

    loads fine for me first time in IE8 and compatibility mode.

    I see you still haven't fixed this line, though: var my= parseInt(qsParm['z']);

  • #3
    Regular Coder
    Join Date
    May 2007
    Posts
    162
    Thanks
    13
    Thanked 0 Times in 0 Posts
    Don't worry, I have implemented your changes on our dev server. I'm just working with a rough copy on the public side for these types of questions. Your solution for the permalink missing "zoom" was perfect. I have yet to implement final changes to the public page.

    I'm still having issues on my IE8 and IE9. Any suggestions on how I can get to the root of this problem? I'd prefer not to place a "Firefox/Chrome recommended" on the webpage.

    Thanks again,
    Shad

  • #4
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,760
    Thanks
    55
    Thanked 516 Times in 513 Posts
    hmmm. weird. because now it isn't working in IE8.

    if the timeout workaround was effective, it's possible that your initialize function is getting called too early. You could try taking the function call out of the body onload tag and adding this:

    Code:
    google.setOnLoadCallback(initialize);

  • #5
    Regular Coder
    Join Date
    May 2007
    Posts
    162
    Thanks
    13
    Thanked 0 Times in 0 Posts
    xelawho,

    Where would I put the google.setOnLoadCallback(initialize);? I tried after body tag, but got some errors.

    I can show you my example but haven't had time to upload it to www yet.

    Thanks,
    S

  • #6
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,760
    Thanks
    55
    Thanked 516 Times in 513 Posts
    try it right at the end of your script block

    Oh - and this might help, too: put your entire script block at the end of the body, right before the closing </body> tag


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •