Results 1 to 2 of 2

Thread: Script works in Chrome but not FF/IE (Google maps API)

  1. #1
    Join Date
    Apr 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Script works in Chrome but not FF/IE (Google maps API)

    Hi there,
    First off, first time poster, and I'm thrilled at finding this site. It seems like a lot of helpful people are here.

    My page is here:

    http://thesportslogbook.com/mapgenerate.php

    This should display a map centered on the users location with various icons indicating nearby stadiums.

    When I load it in Chrome, it works fine. However, when I load it in IE, I get an error saying " Object doesn't support this property or method"

    The 2nd line is where the error is:

    Code:
    function error(msg) {
      var s = document.querySelector('#status');
      s.innerHTML = typeof msg == 'string' ? msg : "failed";
      s.className = 'fail';
    Does anyone have any idea what's causing this error?

    As you can likely tell from looking at the script, I'm a complete newbie trying to fuddle my way into getting things to work through a patchwork approach, which I know is suboptimal, however it is teaching me a lot (I like to learn by mistakes).

    Any help would be much appreciated

  2. #2
    Join Date
    Apr 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Any suggestions maybe on at least a good reference site?

Bookmarks

Posting Permissions

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