View Full Version : IE7 does not like this line of JQuery. Is there a way to change it around?

03-10-2011, 05:51 PM
Hello all,

I have having an issue where IE7, displays an error on the page when this script is used. It wont initiate the scroll bar yet it works fine in the other browsers (IE8,Firefox,Chrome all fine)

Even if I put the code in a js file instead of the html, IE7 finds the problem there. The red text is what it points to as an error

showArrows: true,


03-10-2011, 07:00 PM
is the comma after "true" necessary? IE7 is very fussy about hanging commas (it thinks that that means there is another value yet to come, goes looking for it and gets all confused when it doesn't find it) whereas the other browsers you mention are a bit more relaxed. I think generally speaking it's good practice not to have a comma unless there is another line to follow.

hope that helps.

03-10-2011, 07:16 PM
That solved the problem! Thank you very much. Such a simple thing I missed.

Thanks again!