Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
179
rated 0 times [  182] [ 3]  / answers: 1 / hits: 21339  / 13 Years ago, thu, april 7, 2011, 12:00:00

No, it's not an extra comma.



Here is the snip that is giving me the problem.



$(document).ready(function(){   
$(div#slider).easySlider({
auto: false,
continuous: true,
nextId: nextBtn,
prevId: prevBtn
});

$(div#slider-banner).easySlider({
auto: true,
continuous: true,
controlsShow: false
});
// <---------------------------------- Line 14
$(div#slider-photos).easySlider({
auto: true,
continuous: true,
controlsShow: false
});

$(#marquee).marquee({
scrollSpeed: 25,
pauseSpeed: 2000,
showSpeed: 850

});
});


ERROR DETAILS



User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET CLR 1.1.4322; Tablet PC 2.0; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)
Timestamp: Wed, 6 Apr 2011 15:20:42 UTC


Message: Expected identifier, string or number
Line: 14
Char: 5
Code: 0


This is happening on random IE8 installs, any ideas?


More From » jquery

 Answers
23

Try putting all your object properties in (double)quotes, like this:



$(div#slider).easySlider({
'auto': false,
'continuous': true,
'nextId': nextBtn,
'prevId': prevBtn
});

[#92864] Tuesday, April 5, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
josefn

Total Points: 251
Total Questions: 93
Total Answers: 84

Location: Senegal
Member since Fri, Aug 21, 2020
4 Years ago
;