Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by M. Radulescu on Oct 24, 2009 15:44
open dhtmlx forum
Reatach Object

Hi,

I have this function for creating a new window and attaching an object.

function windc() {
    dhxWins = new dhtmlXWindows();
dhxWins.enableAutoViewport(true);
dhxWins.setImagePath("codebase/imgs/");
w1 = dhxWins.createWindow("w1", 20, 30, 320, 240);
w1.setText("dhtmlxWindow");
w1.center();
w1.attachObject('winobj');
}

At first call it works and the window is created, but if I close it and call the function again the window appears with the title but blank.

Is there another way of doing this?

Thank you!
M.
Answer posted by Alex (support) on Oct 26, 2009 08:24

Hello, 

attachObject method places element into the window. When windows closes, its content removes (and element too).

The possible solution cane found here: http://dhtmlx.com/docs/products/kb/index.php?s=normal&q=10199

Answer posted by M. Radulescu on Oct 26, 2009 09:44
Thanks for your help. It works.