I’m having trouble trying to use the jQuery - jCarousel widget. i have had this working for 6 months without any problems. i just moved my site live and now a problem has cropped up. The problem can be seen on either of these pages (the first one is a bit stripped down for debugging) - http://www.redyref.com/kiosks/custom_kiosks, http://www.redyref.com/touchscreen_building_directories/Office. the carousel should appear above the text “Install Views”.
It looks like the jQuery libraries are found, but I’m not sure. I am using the expression engine CMS software for this site.
When refreshing the page, i get a javascript syntax error on the code below. i have posted both the source code and the “View Source” code. if you look closely, you will see that the information for the parameter “itemLoadCallback:” is missing from the “view source” code. So it looks like the callback is being stripped out somehow and then causing a syntax error.
ORIGINAL CODE:
[removed]
jQuery(document).ready(function() {
jQuery('#mycarousel').jcarousel({
vertical: true,
size: mycarousel_itemList.length,
itemLoadCallback: {onBeforeAnimation: mycarousel_itemLoadCallback}
});
});
[removed]VIEW SOURCE CODE:
[removed]
jQuery(document).ready(function() {
jQuery('#mycarousel').jcarousel({
vertical: true,
size: mycarousel_itemList.length,
itemLoadCallback:
});
});
[removed]The problem is even exists when i copy the code from the author of jcarousel’s code into my site.
This is the new page.
http://www.redyref.com/index.php/carousel_test/
This is the authors page:
http://sorgalla.com/projects/jcarousel/examples/dynamic_javascript.html
Any help would be greatly appreciated.
Thanks,
John