IonDen / ion.rangeSlider

jQuery only range slider
http://ionden.com/a/plugins/ion.rangeSlider/en.html
MIT License
2.55k stars 508 forks source link

onFinish onChange should have access to $slider #33

Closed elmarshar closed 10 years ago

elmarshar commented 11 years ago

I think both this functions need access to the $slider variable. I use multiple sliders, selected by css class-name and onFinish I need to submit the parent form.

IonDen commented 11 years ago

Good idea.

martinAnsty commented 11 years ago

Would it be useful if this referenced the jQuery object the slider was initiated on within callbacks?

catalinux commented 10 years ago

Did you find any way you could to that. For example onFinish, I wanat to access max value

IonDen commented 10 years ago

Hi, soon will be new release with all this fixes.

catalinux commented 10 years ago

Thanks. Any hints till than? :)

IonDen commented 10 years ago

Done in 1.8.5

catalinux commented 10 years ago

How do I access the slider object? I need to access min and max in onFinish callback, so that my updated inputs would be clear when the range is set on min and max

IonDen commented 10 years ago

There is 2 new options in callback: input (hidden input field), and slider (slider container), both jQuery objects.

IonDen commented 10 years ago

http://ionden.com/a/plugins/ion.rangeSlider/en.html Look at the black field with numbers after last slider, you will see all return values

catalinux commented 10 years ago

I would need to acces the ion.rangeSlider object , so I can access to min and max values.

IonDen commented 10 years ago

@catalinux , min and max values don't change. You know them then you init the slider. Save them for later at this moment.