Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Max on Jan 13, 2009 06:28
open dhtmlx forum
Slider : destroy or hide.

Hi

Is it possible to destroy or hide slider.

Scenario:

User "Enters" edit mode. (I show / create slider)
User changes some values using slider.
User presses OK (I need to hide / destroy slider)

Thanks in advance!

Max.
Answer posted by Support on Jan 13, 2009 08:59
There is no separate methods, but you can init slider on page loading and just hide|show its HTML container

var slider = new dhtmlxSlider("someCont");
...
document.getElementById("someCont").style.display="none"; //hide
...
document.getElementById("someCont").style.display="block"; //show