Search code examples
jquerystringslideridentifier

jquery.min.js error in ie6


IE g gives me the following error:

Line: 79 Char: 4 Error: Unexpected identifier, string or number Code: 0

The website is test.hatc.org.

I am using a template that features fading images, opacity and sliding menus. I saw an error pertaining to jquery.min.js in a browser running IE8 with compatibility mode on, so I think it has something to do with that.

Any ideas or similar errors found by anyone?

Thanks.


Solution

  • you have a trailing comma in this element:

    $('.slider-container').cycle({
    fx:'fade',
    timeout:0,
    speed:400,
    });
    

    Should be:

    $('.slider-container').cycle({
    fx:'fade',
    timeout:0,
    speed:400 //NO comma here
    });
    

    In IE8, they've changed the JScript engine to realize there is no data after the last comma - thus ignores it like other browsers.