Switching the Content of the Carousel on Click

View: New views
1 Messages — Rating Filter:   Alert me  

Switching the Content of the Carousel on Click

by Martin-Moeller :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Board,
 the last 8hours i spent trying to work out a way to switch the Content
of the List on click. (ie. Tabs)

I started out with the Javascript Array Example where it loads external Content.
Then i wrote a onClick Function which assigns mycarousel_itemList a new set of Data.

This works but now i need to Reload/Reset the actual Carousel Object so it adjusts
to the new Data Array.

I tryed everything i could think of but it just doesnt work.

Heres an Example:
                         <-- onClick -->
                                        $('#mycarousel').jcarousel({
                                                size: mycarousel_itemList.length,
                                -->>     initCallback: mycarousel_initCallback,
                                                itemLoadCallback: {onBeforeAnimation: mycarousel_itemLoadCallback}
                                        });
                                       
                                        function mycarousel_initCallback(carousel, b){
                                                ---> carousel.reload();
                                        };

(Theres also a Reset Function but tryed it too)

So basicly i havent found any way of getting this accomplished. You guys are my last hope.

Thanks in advance.