Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Referencing my Carousels via Javascript   Message List  
Reply | Forward Message #41987 of 52127 |
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
onclick="carousel.removeItem(0)" I get a javascript error saying what
the heck is a carousel?

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:
"document.getElementById('container').carousel.removeItem(0)". Again,
it says thet carousel is undefined.

Can you offer some guidance? thanks!






Thu Dec 4, 2008 10:44 pm

craigdscribner
Offline Offline
Send Email Send Email

Forward
Message #41987 of 52127 |
Expand Messages Author Sort by Date

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...
craigdscribner
Offline Send Email
Dec 4, 2008
10:44 pm

I'm not an authority, but the simple answer is just to set the "effect" field in the "animation" property. The default is "YAHOO.util.Easing.easeOut". I...
Karr, David
david.karr@...
Send Email
Dec 5, 2008
7:12 pm

... The YUI Carousel offers a static method "getById" that can be used to get the instance of the Carousels in your page. For example, assuming you have two...
gopalarathnam_v
Offline Send Email
Dec 5, 2008
7:46 pm

Thank you Gopal! That works! From: ydn-javascript@yahoogroups.com [mailto:ydn-javascript@yahoogroups.com] On Behalf Of gopalarathnam_v Sent: Friday, December...
Scribner, Craig
craigdscribner
Offline Send Email
Dec 5, 2008
9:17 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help