jQuery: The Write Less, Do More JavaScript Library

Talk:UI/Slider

From jQuery JavaScript Library

Jump to: navigation, search

Correction on the slider

To make it work on IE : there is just a coma to remove at the end of the line 31

Correct the "too much recursion error" (or "Out of memory" on IE) : modify lines 105 and 106 to this

o.realValue = (o.maxValue - o.minValue);
o.stepping = parseInt(o.stepping) || (o.steps ? o.realValue/o.steps : 0);


And there is a strange default value for the start value (l.87), you could change it to :

startValue: parseInt(o.startValue) || parseInt(o.minValue) || 0,

by Laymain


I get a too much recursion error

slider code doesn't work

All slider demos don't work! On firefox the slider pin has not horizontal constrain. On IE I get just errors and nothing move.

more information

In Firefox 2.0.0.8 the primary slider example don't work on initial load, but if you go to another page (I went to the "A UI Themed Demo" link) and hit back, the example suddenly works (can be dragged). I did not notice the lack of horizontal constraint.