rcarousel icon indicating copy to clipboard operation
rcarousel copied to clipboard

Getting error on less than 3 images vertical scroller - simulated by using veritcal scroller example provided.

Open GrahamFClark opened this issue 12 years ago • 2 comments

I'm getting this error in the Firebug console when adding only two images.

TypeError: data.lastPage[i] is undefined error source line: [Break On This Error]
if ( data.lastPage[i].get(0) === page[i].get(0) ) {

Code @ Line 283 in jquery.ui.rcarousel.js

I recreated it in one of your examples - vertical.html. I removed all but two images in the carousel and voila problem occured.

next prev

Carousel Version 1.1.3

Thanks

GrahamFClark avatar Aug 31 '12 14:08 GrahamFClark

I ran into this when the configuration option for "visible" or "step" was set to a larger value than the number of actual images in the list, and when the items in the list were 's not 's.

mikecaines avatar Sep 30 '13 22:09 mikecaines

change your step and visible to count ur dynamic array..
$(function(){ $("#carosel-out").rcarousel({ step:, visible: , orientation: "vertical", width: 210, navigation: { next: "#ui-carousel-next1", prev: "#ui-carousel-prev1" }

    });
        $("#ui-carousel-next1")
        .add("#ui-carousel-prev1")
        .hover(
            function(){
                $(this).css("opacity", 0.7 );
            },
            function(){
                $(this).css("opacity", 1.0 );
            }
        );                  
});

ashu4code avatar Oct 04 '13 08:10 ashu4code