setValue/getValue bug?

after changing the js-file (dhtmlx.com/docs/products/kb/inde … mal&q=8151)
a new “bug” occured:
after setting a Value (setValue), the getValue-Method returns the max-value (99) in the example below.
so if i call clickIT(50) the new_val variable has the value 99 instead of the expected 50.


var slider11 = new dhtmlxSlider(null, 300,“simplesilver”,false,10,100,99);
       slider11.init();
   /    slider11.attachEvent(“onChange”,function(value){
           var min=slider10.getValue();
           if (value<min) this.setValue(min);
       })
/
    function clickIT(val) {
        var old_val=slider11.getValue();
        slider11.setValue(val);
        var new_val=slider11.getValue();
        alert(old_val+’ ‘+val+’ '+new_val);
    }



Problem solved, please replace your dhtmlxslider.js file with attached one.

dhtmlxslider.zip (9.77 KB)

thanx for the new files
but now i have a problem with the constructor

var slider11 = new dhtmlxSlider(null, 300,“simplesilver”,false,10,100,99);
the value-parameter (99) don’t work any more. the slider is after the initalisation on the minimum-value.

Problem solved. Fixed version in the attachment.

dhtmlxslider.zip (3.73 KB)

thanks, now it works fine!