Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by ch on Feb 25, 2009 06:10
open dhtmlx forum
setValue/getValue bug?

after changing the js-file (http://dhtmlx.com/docs/products/kb/index.php?s=normal&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);
    }
Answer posted by Support on Feb 25, 2009 07:50

Answer posted by Support on Feb 25, 2009 07:50

Answer posted by Support on Feb 25, 2009 08:04
Problem solved, please replace your dhtmlxslider.js file with attached one.
Attachments (1)
Answer posted by ch on Feb 25, 2009 08:30
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.

Answer posted by Support on Feb 27, 2009 06:38
Problem solved. Fixed version in the attachment.
Attachments (1)
Answer posted by ch on Mar 02, 2009 00:56
thanks, now it works fine!