Categories | Question details Back To List | ||||||||||||||
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); 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! |