jQRangeSlider
jQRangeSlider copied to clipboard
valuesChanged event is not called when setting values programmatically
According to the docs the valuesChanged event should be called, when the values are set programmatically. However, it does not work when using date range slider.
See demo for range slider and date range slider - alert is not displayed after the page has been loaded, but it should. It is displayed only after changing the slider's value.
Thanks for reporting. I'll take a look.
So, this version is actually displaying the alert:
http://jsfiddle.net/vM844/1237/
Why ? Because the slider must wait for the browser to render elements, in order to have correctly computed positions.
The second call happens but the slider is not really initialized yet.
I'm not sure I'll fix this very soon.
I think that posting an initialized event from slider would do the trick as I would be able to detect appropriate moment to update the values.