Ah- nice- that makes sense- changing it to values worked- Now, is there a way to actually get the index of the handle that was clicked on? short of just figuring it out based on the start value?
Thanks for all your help Richard, Mike On Jan 29, 8:22 pm, "Richard D. Worth" <rdwo...@gmail.com> wrote: > On Thu, Jan 29, 2009 at 8:16 PM, m...@fonolo.com <m...@fonolo.com> wrote: > > > So I grabbed a copy of ui.slider and ui.core from trunk, and it does > > indeed fix the issue with clicking on the handle; it is now clickable, > > and it doesn't shift around. > > Glad to hear it. > > > > > BUT > > > it seems when I have multiple handles on a slider (using values: > > [ array of integers ], but NOT using a range), while the handles are > > clickable, and both the start/stop events fire for each handle, the > > ui.value is 0? > > > maybe it's the way I've implemented it? maybe because i've got > > multiple handles on a slider, without a range setting? > > > I've also tried accessing value, not only from ui.value, but from > > > $('#slider2').slider('value', 0), and I still get 0 back as the value > > If you have multiple handles (with or without a range) you need to use the > 'values' method instead of 'value'. It's similar to 'value' except that you > need to pass an index as the first argument. For example > > //get the value of the 3rd handle > var val = $("#slider").slider('values', 2); > > //set the value of the 1st handle to 5 > $("#slider").slider('values', 0, 5); > > - Richard