jslider
jslider copied to clipboard
Some event handling for jslider
Grettings,
How can you handle the event that runs when I stop moving the slide control and adjust the value to use, and so my form update automatically using the plugin?
You can already set the callback function which is called on mouseup. If you want a 'slidden' event, modify the jSliderPointer.prototype.onmouseup function like this:
jSliderPointer.prototype.onmouseup = function( evt ){
if( this.parent.settings.callback && $.isFunction(this.parent.settings.callback) )
this.parent.settings.callback.call( this.parent, this.parent.getValue() );
this.parent.inputNode.trigger("slidden", this.parent.getValue()); //add this line
this.ptr.removeDependClass("hover");
};