Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-24-2011, 07:52 PM   PM User | #1
dchase
New to the CF scene

 
Join Date: Feb 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
dchase is an unknown quantity at this point
JQuery Cycle issue

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...eception-sites and here: http://www.thecasualgourmet.com/cape...auticus-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.
dchase is offline   Reply With Quote
Old 02-24-2011, 08:36 PM   PM User | #2
venegal
Gütkodierer


 
Join Date: Apr 2009
Posts: 2,127
Thanks: 1
Thanked 426 Times in 424 Posts
venegal has a spectacular aura aboutvenegal has a spectacular aura about
You're including a second version of jQuery after including the cycle plugin:
Code:
<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.
venegal is offline   Reply With Quote
Old 02-24-2011, 08:59 PM   PM User | #3
dchase
New to the CF scene

 
Join Date: Feb 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
dchase is an unknown quantity at this point
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.
dchase is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:52 AM.


Advertisement
Log in to turn off these ads.