Try the values option. Set it to an array of [0,1000,2000 ... ] and
your slider will "stick" at those options, like detents in an f-stop
ring on your camera.
Walter
On Sep 2, 2010, at 2:51 AM, TK wrote:
I wanna make a slider which is working like a discrete slider.
That means that i have a range from 0 to 100.000 and the values should
only be 0,1.000,2.000,3.000,4.000...and so on.
I know that there is a option for the sliders called "values", but
that cant be the solution. Because if i have a slider from 0 to
1.000.000 and the steps should be 0,100,200,300,400,500...and so on, i
would have 10.000 values in the "values"-option.
So i saw here http://wiki.github.com/madrobby/scriptaculous/slider
that there is the option called "increment" and the description is the
functionality i am searching for.
"Defines the relationship of value to pixels. Setting this to 1 will
mean each movement of 1 pixel equates to 1 value. "
But it istn working, ive tested around so much hours...maybe anyone
here can help me or tell me more about it?
Thanks in advance
TK
--
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 [email protected]
.
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
.
--
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 [email protected].
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.