View Full Version : JQuery Cycle issue

02-24-2011, 08:52 PM
I am pretty new to JQuery but confidant enough that I am not missing something simple.

I am using the JQuery cycle plugin to create slideshows on this site: http://www.thecasualgourmet.com/

As you can see the homepage slideshow works great. However, no other slideshow on the site works see here: http://www.thecasualgourmet.com/cape-cod-wedding-reception-sites and here: http://www.thecasualgourmet.com/cape-cod-wedding-reception-sites/nauticus-marina

Chrome tells me that there is an "Uncaught TypeError: Object #<an Object> has no method 'cycle'"

There is a lot of other JQuery stuff from Wordpress plugins I am using but I have tried deactivating all of those and the same problem persists. I just don't understand how the same code can work on one page but not the other.

Any help would be greatly appreciated.

02-24-2011, 09:36 PM
You're including a second version of jQuery after including the cycle plugin:

<script type="text/javascript" src="http://thecasualgourmet.us1.list-manage.com/js/jquery-1.2.6.min.js"></script>

This will overwrite the whole jQuery object and all its extensions, which means that the cycle method is, in fact, not there any more when the DOM ready event fires.

There's never a (good) reason to include more than one version of jQuery, so just remove it.

02-24-2011, 09:59 PM
Thank you so much! I was focusing on the scripts in the head, never occurred to me to look at what else I had on the page.