Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by wiebe.g on Feb 06, 2009 11:56
open dhtmlx forum
Possible Slider Bug

Hi,

In IE the slider can be moved past the end of the slider bar if the div tag is inside a table tag

example code

<body>
<table><tr><td>
<div id="test"></div>
<script type="text/javascript">
var slider1 = new dhtmlxSlider("test", 200,null,false,1,90);
slider1.init();
</script>
</td></tr>
</table>
</body>
Answer posted by Alex on Feb 09, 2009 07:47

Hi,

You can try to use one of the following approaches:

1) call slider initialization on page loading end:

document.body.onload=function(){ 
 var slider1 = new dhtmlxSlider("test", 200,null,false,1,90); 
 slider1.init(); 
}

2) using timeout:

window.setTimeout(function(){ 
var slider1 = new dhtmlxSlider("test", 200,null,false,1,90); 
slider1.init(); 
},1);