[jQuery] Switching the Content of the Carousel on Click

[jQuery] Switching the Content of the Carousel on Click


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.
--
View this message in context: http://www.nabble.com/Switching-the-Content-of-the-Carousel-on-Click-tf4284282.html#a12195641
Sent from the jCarousel mailing list archive at Nabble.com.