Unexpected Symbol in IE7, but works in FF and Safari

Hi there,

I am having a problem with internet explorer 7. I am working on a site that maps google maps to show .gpx files, and it is working fine in IE8, firefox (v2 and 3) and safari.

However in IE 7 i am getting the following error when running the following line


$(document).ready(function() { initialize(); $("#player_controls a img").tooltip(); });

Line: 45
Error: Expected Identifier, string or number;

The funny thing is that initialize is a clearly and previously defined function, I had some problems before with IE due to variables being out of scope, so I am afraid this may be something related, but I am not very familiar with IE inner workings so, please help :slight_smile:

Here is a link to the offending page.

http://geobetty.com/rides/el-paso-tx/9/franklins-sunset-to-shortcut-5

Thanks for your help!

The error is associated with an extra , been declared, the error indeed lies on line 45 because there is an extra comma at the end of

title: "Start Point",

should be

marker = new google.maps.Marker({
    position: new google.maps.LatLng(31.914103031158447,-106.51695996522903),
    map: map,
    icon: "/images/bike-icon.png",
    title: "Start Point"
});

SgtLegend,

Thanks for your help. It is funny how picky IE can be. Do you mind if I ask you what kind of tools are available to debug javascript in IE7 or below?

The error message that I get is not very descriptive, nor useful.

Thanks again.

Usually because IE sucks so bad with error reporting i copy the error into Google and search it but because i have known about this error for a while now i already knew where to look :slight_smile:

http://stackoverflow.com/questions/361635/debugging-javascript-in-ie7