Categories | Question details Back To List | ||
Window + Slider I'm using the pro ver and I have the following problem. A pop-up window attached to a DIV id "custom". Into this DIV there is declared a FORM as: <div id="custom" class="showCustomform"> <FORM name="customForm" id="customForm"> <TABLE border=0 width=410> .... <TR > <TD width="50px">Set Start:</TD> <TD><div id="slider_start" class="slider_hr"></div> </TD></TR> ... Also I create a Slider within the DIV slider_start. Into the onClose window event, I just delete the slider object. This is WORKING fine, but only once. If I try for a second time, I get the error: document.getElementById(...) is null! Please, is there anything wrong into my code? Thanks in advance Answer posted by Alex (support) on Sep 02, 2009 04:16 When window is closed all its content is deleted too.v That why you get document.getElementById(...) is null error message. Object that was added into the window before doesn't exist. You can redefine close button logic and hide window instead of closing it. To show window again you just need to call show method: win.show();Answer posted by j.lagos on Sep 03, 2009 04:34 Ok, Thank you! |