This works for me:
new Control.Slider(''handle1'',''track1'',{
sliderValue:.5,
onSlide:function(v){setZoom(v)},
onChange:function(v){}});
On Jun 5, 6:58 am, G Jones
<greg.jo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi,
>
> I''m trying to use the Slider control, but struggling slightly with
how
> the documentation relates to the code. I''m using 2 handles and a
200px-
> long track, and want to set the handle-values to be 50px and 150px.
> The only way that seems to work is to set the initialValue to
> [0.25,0.75], but this seems to go against the references to "1px=1
> value", and ''integers'' in other parts of the
documentation.
>
> Has something changed, or is something else in my particular
> context(which I can try to elaborate on if required, if nothing has
> changed) affecting this?
>
> thanks for any help,
>
> Greg
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---