Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #2
    GŁtkodierer
    Join Date
    Apr 2009
    Posts
    2,127
    Thanks
    1
    Thanked 426 Times in 424 Posts
    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.

  • #3
    New to the CF scene
    Join Date
    Feb 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •