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.


Hello,


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


The possible solution cane found here: dhtmlx.com/docs/products/kb/inde … al&q=10199

Thanks for your help. It works.

please give me the answer