Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by ch on Feb 25, 2009 03:41
open dhtmlx forum
slider wrong getValue result

if i modify the example of
http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=4595&ssr=yes&s=range
to other min-value (10), the example don't work.
the slider11.getValue() returns the value 10 instead of 99.
the getValue() function works only with min-value 0.

    var slider10 = new dhtmlxSlider(null, 300,"simplesilver",false,10,100,20);
    slider10.init();
    slider10.attachEvent("onChange",function(value){
        var max=slider11.getValue();
        if (value>max) this.setValue(max);
    })
    
    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);
    })
Answer posted on Feb 25, 2009 05:15
Issue already fixed in latest codebase. Fix will be released as part of next build. If you need it ASAP - you can use attached js file instead of original one. 
Attachments (1)