You could create your slider with a range of  0 - array.length -1.
Then use that value as an index to your actual data array in the
onSlide/onChange events



On Nov 26, 3:10 am, Nicolas Cavigneaux <[EMAIL PROTECTED]> wrote:
> Le 25 nov. 08 à 22:14, Matt Foster a écrit :
>
>
>
> > You're sample data isn't really a range though is it?  Why would you
> > want to use an instance of ObjectRange over a regular Array?
>
> I know that it's not really a range like I said in my previous mail :
>
> snip
>   (I know that it's not a normal behaviour for a range)
> snip
>
> but I need to feed a Scriptaculous Control Slider and can't get it to  
> work with a regular Array. So if you've got a working example of how  
> to initialize a Slider with values such as [21, 22, 23, 0, 1, 2] and  
> two handles set by default at 21 and 2, it's more than welcome.
> --
> Nicolas Cavigneauxhttp://www.bounga.orghttp://www.cavigneaux.net
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to