On Thursday, February 22, 2007, at 12:35PM, "Michael Peters" <[EMAIL 
PROTECTED]> wrote:
>new() will return an object. Sometimes you don't need it. But in this case you 
>do.
>
>> But, once it's initialized, what's the syntax to call the setValue() and 
>> setValueBy() functions?  Is it just Control.Slider.setValue()?  I have more 
>> than one slider on the page so i'm guessing there must be a way to 
>> differentiate?
>
>No, get the object back and then call it's setValue() and setValueBy() methods.
>
>var slider = new Control.Slider(...);
>slider.setValue(...);

Perfect!  Thanks Michael, that's exactly what i needed :)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to