Results 1 to 4 of 4

Thread: Step Carousel Viewer, which version of jquery?

  1. #1
    Join Date
    Mar 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Step Carousel Viewer, which version of jquery?

    Hi Folks,

    I'm trying to use the script with a recent version of jquery, 1.8.2, but it does work. The paging buttons do not work:

    http://www.mharrisweb.co.uk/scroller/

    Can anyone please tell me how I can get the paging buttons to work with the latest version of jquery?

    Many thanks in advance

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,070
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    Please post about Dynamic Drive Scripts in the Dynamic Drive Scripts Help section here where I've moved this thread, and:

    Warning: Please include a link to the DD script(s) in question in your post. See this post for more information.


    That said, this looks like a selector bug in jQuery 1.8.x or a case where the script is getting more finicky about syntax, probably the latter.

    To change it to a selector that works with jQuery 1.8.x you can, using a text only editor like NotePad, open up the stepcarousel.js file and around line #220 find the highlighted line:

    Code:
    	createpaginate:function($, config){
    		if (config.$paginatediv.length==1){
    			var $templateimg=config.$paginatediv.find('img["data-over"]:eq(0)') //reference first matching image on page
    			var controlpoints=[], controlsrc=[], imgarray=[], moveby=$templateimg.attr("data-moveby") || 1
    			var asize=(mo . . .
    Change that line to:

    Code:
    			var $templateimg=config.$paginatediv.find('img[data-over]:eq(0)') //reference first matching image on page
    Save that and use that version.

    The browser cache may need to be cleared and/or the page refreshed to see changes.
    Last edited by jscheuer1; 11-23-2012 at 04:00 PM. Reason: minor detail in explanation
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks very much for the reply.

    I have changed that piece of code but now I get a error:

    Error: TypeError: $ is not a function
    Source File: xxxx
    Line: 46

    Code:
    $(document).ready(function() {
    Would the change I made to stepcarousel.js cause that?
    Last edited by mattastic; 11-26-2012 at 11:43 AM.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,070
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    No. And I'm getting no such error on your demo page. Likely you have other script code on some other page that you're using with this script that also uses jQuery. If so, again using a text only editor like NotePad, edit your current stepcarousel.js script, this time comment out the noConflict directive as shown (near the top):

    Code:
    //** Step Carousel Viewer- (c) Dynamic Drive DHTML code library: http://www.dynamicdrive.com
    //** Script Download/ http://www.dynamicdrive.com/dynamicindex4/stepcarousel.htm
    //** Usage Terms: http://www.dynamicdrive.com/notice.htm
    //** Current version 1.91 (Aug 15th, 11'): See http://www.dynamicdrive.com/dynamicindex4/stepcarouselchangelog.txt for details
    
    
    //jQuery.noConflict()
    
    var stepcarousel={
    	ajaxloadingmsg:
    Save and use that.

    The browser cache may need to be cleared and/or the page refreshed to see changes.

    If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. Step Carousel with jquery cycle script
    By Badgio in forum Dynamic Drive scripts help
    Replies: 32
    Last Post: 08-30-2010, 01:37 PM
  2. a little help with Step Carousel Viewer v1.6.1
    By scruff6544 in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 03-05-2009, 12:06 PM
  3. Step Carousel Viewer v1.6.1
    By traceman in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 03-02-2009, 09:49 PM
  4. Step Carousel Viewer v1.6.1
    By LuperonBoater in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 02-17-2009, 12:24 PM
  5. loading Step Carousel Viewer in middle of carousel
    By sam4682 in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 12-31-2008, 10:07 PM

Bookmarks

Posting Permissions

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