[jQuery] jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...

2008-03-10 Thread [EMAIL PROTECTED]

when i implement jCarousel with options "wrap : 'both', vertical :
true, scroll : 1" and call prev method this alert apear.
I debg the script and discover that the "back" var in the "pos" method
is not set to true... so. to make t work i change the script from:

if (d == 0) {
alert('jCarousel: No width/height set for items. This will cause an
infinite loop. Aborting...');
return 0;
}

to:

if (d == 0) {
if (v == 0) {
alert('jCarousel: No width/height set for items. This will 
cause an
infinite loop. Aborting...');
return 0;
} else {
if (v < clipping) v = clipping;
break;
}
}


[jQuery] jCarousel: No width/height set for items.

2007-11-23 Thread sukhminder

I have implemented jCarousel dynamically loading images with AJAX. It
runs fine until I click some other link on the page and it shows me
the following error: "jCarousel: No width/height set for items. This
will cause an infinite loop. Aborting..."

Below is the part of the code what I am using:

function gallery() {
$('#cbody').html('');

$('#mycarousel').jcarousel({
scroll: 6,
itemLoadCallback: mycarousel_itemLoadCallback
});
};

function mycarousel_getItemHTML(url)
{

  var url_m = url.replace(/small/g, '');

return '';

};

function showPic(picurl) {
$('#dspPic').html("").animate({height: 'show',opacity: 'show'}, 'slow');
}

Thanks!