Close window / update opener frame?!

Hello

  1. I create a window and with “Window.attachURL($url);” i open an iframe. Inside of the iframe i have a button which should close my window. Things like “window.close();” doesn’t work. how can i do that?

  2. If i have a normal popup i can update the opener-frame with something like “opener.document.getElementById(‘id’).src = ‘test.php’;”
    Is there any option with dhtmlx-Window or i make something wrong?

Best regards and thank you in advance

Hello

Init of window (main html):

dhxWins = new dhtmlXWindows(); dhxWins.enableAutoViewport(true); dhxWins.attachViewportTo("winVP"); dhxWins.setImagePath("../dhtmlxWindows/codebase/imgs/"); w1 = dhxWins.createWindow("w1",0, 0, 362, 457); w1.attachURL("button_close.html");
Iframe (button_close.html):

[code]

[/code]

Iframe (button_close.html):

<input type="button" id="upd" onclick="reloadWindow()" value="Reload Window"/> function reloadWindow(){ window.parent.w1.attachURL("button_close.html"); }

Works fine.

Thank you

You are welcome!