SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Zealot barleytwist's Avatar
    Join Date
    Dec 2005
    Location
    Lulworth, Dorset, UK
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Debugging Googlemaps with Firefox

    I am trying to get google maps working on our site. Here.

    You will notice no map is displayed (go down the page a bit to the red bordered box). I have used this code on another site and works fine. The ID. from googlemaps was asked for http://www.warehammid.dorset.sch.uk so I assume the pages in this folder should apply (that's where office.html fits).

    I know the code is going to google because if I change the ID a google error message comes up saying the Id is for somewhere else (or at least i assume it goes to google to get it checked?).

    Anyway its the googleMap.js which does not seem to be getting processed. If I put a breakpoint in Firefox (don't really know what I'm doing here as I'm not a js coder), and refresh the page it does not get hit. The 1st line can't be wrong because this code works for the other site in the same browser.

    Can anyone detect why the map is not working (PS if I change everything to a Yahoo map the same thing happens)? I am suspicious that there is an incompatibility on the site somewhere.

    Thanks for your time.

  2. #2
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Seems to be working fine now.

  3. #3
    SitePoint Zealot barleytwist's Avatar
    Join Date
    Dec 2005
    Location
    Lulworth, Dorset, UK
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Yes, thanks

    Yes it is! I made the classic beginner mistake of having several onload statements in different positions in my js files. I've now put them all together in the Body line.

    Thanks


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
  •