Search code examples
javascriptinternet-explorer-7internet-explorer-6

Script doesn't load on IE7


I got a problem with a script, when I try to load the page in IE7

Link to the website

Expected identifier, string or number zoommap.js, line 126 character 6

This is what is in that line:

    }).appendTo(map).click(function(){

Object doesn't support this property or method setupMap.js, line 6 character 1

This is what is in that line:

        $('#map').zoommap({

I hope that you can help me, I'll really appreciate it. If you need any other info please tell me.


Solution

  • Remember that JavaScript does not support "final commas" in object definitions. So I cannot write:

    var obj = {'a': 1, 'b': 2,}
    

    but have to write:

    var obj = {'a': 1, 'b': 2}