dhtmlxWindow

Hi @all,

I have created a dhtmlxWindow object that loads the content of another html-Page.
On the page that is shown inside the dhtmlx-Window I want to open another dhtmlxWindow by clicking a button. This works quite fine but the new dhtmlxWindow is opened inside the first dhtmlxWindow. But I want that the new window is loaded outside the first dhtmlxWindow.
I couldn’t solve this problem. I hope anybody can help me how to solve this.

Thak you.

Best regards

Mario

Hi Mario,

if you use iframe as a window content (attachURL method), you need to call methods from the parent window:

parent.dhxWins.createWindow(“w2”,…);

Hi Alexandra,

thanks for your reply.

I have tried this, but it doesn’t work.

Could you give me a small example, please?

Thanks a lot.

Mario

Hi,

sure!

  1. parentPage.html - dhxWins is a public variable:

dhxWins = new dhtmlXWindows();

w1 = dhxWins.createWindow(“w1”, 20, 30, 520, 240);
w1.attachURL(“childPage.html”);

  1. childPage.html:

parent.dhxWins.createWindow(“w2”, 20, 30, 520, 240);

Hi Alexandra,

thank you very mutch.

This small example helped me a lot.

Now it works. Fine :slight_smile:

Mario