Thank you Gopal! That works!
> I want to have some control buttons above my Carousels that can remove
> all the carousel items and replace them with new ones, change the size
> and the visibilityNum.
> I can see how to do all these things when I load the page initially,
> but I don't know how to reference and change them later on.
> For example, if I insert an HTML button on the page that says
> the heck is a carousel?Again,
> I realize that the carousel I want is contained in a div called
> Container. But I still can't figure out a way to make something like
> this work:
> it says thet carousel is undefined.The YUI Carousel offers a static method "getById" that can be used to get the instance of
> Can you offer some guidance? thanks!
the Carousels in your page. For example, assuming you have two Carousels in your page
with element IDs viz., "carousel1" and "carousel2", then:
// the following call returns the Carousel instance "carousel1"
var carousel1 = YAHOO.widget.Carousel.getById("carousel1");
// you can use any YUI Carousel method on carousel1 now
Similarly, passing "carousel2" returns the instance of the second Carousel (that has the ID
Note: if you see question marks (?????) after my name in the From header, then your mail
tool is not Unicode enabled! You should see my name (Gopal Venkatesan) in Hindi (à¤—à¥‹à¤ªà¤¾à¤²