Forums Carousel

problem with UI.Ajax.Carousel

Subscribe to problem with UI.Ajax.Carousel 3 post(s), 1 voice

 
Avatar hc 3 post(s)

hi,
firstly thanks a lot for this piece of code!

i am about to use multiple UI.Ajax.Carousel, but even if i only try my code with a single one the following failure appears. (btw – when i am working with multiple UI.Carousel – the same way – everthing works fine!)

first of all my code:


function initGroupCarousel(gc) {
    elementCount    = 41;
    elementSize    = 100;
    ulWidth        = (elementCount*elementSize);
    var gContent    = $$('#'+gc+' ul').first();
    gContent.setStyle({'width': ulWidth+'px'});

    gCarousel     = new Array;
    gCarousel[gc]    = new UI.Ajax.Carousel(gc, {
        url: "index.php", 
        elementSize: elementSize
    });
    [...]
}


i surely also tried it with static width:4100px within the CSS file etc..

the failure:
everything works fine in the beginning, but although i pass more=true the carousel will not send a new request after five successful ones. should be eight requests alltogether instead of just five. (also no messages via firebug!)

last response from index.php:
{"html":"myHtmlOutput","from":"24","to":"29","more":true}
but it should go at least two steps further…

any idea?
any help would be appreciated.
cheers,
chris

 
Avatar hc 3 post(s)

well, i managed it and solved the problem above myself! =)

but i still have another demand! i am using a button to jump several steps at once and load more content in one step…

    myButton.observe('click', function(event) {
        gCarousel[gc].scroll(100*thumbSize);
    });

right now the carousel will load the whole content in single requests, which is not very much efficient.
  • is there a way to do it more efficiently?
  • or are there plans to implement anything to the library to handle this matter?

any help would again be appreciated.
cheers, chris

 
Avatar hc 3 post(s)

any feedback at all would be awesome.
thanks in advance,
chris

Forums Carousel