Page 1 of 1

callback functions

PostPosted: Fri Jun 29, 2012 3:24 pm
by phpsourcerer
found this thread in the old forums when I had that problem. I found another way (with the current version 1.0.3):
Code: Select all
if (this['dragCallback']) this['dragCallback'](n_value);
as the last line in function f_sliderSetValue (i.e. line 100) and when you add an option "dragCallback" with a function name, that function will be called with the current value when the slider is dragged.

It should also be possible to do the same stuff in the functions f_sliderMouseUp and f_sliderMouseUp, but you must use "this.n_value" instead of just "n_value" and - of course - other parameter names.