Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Chris on Jan 18, 2010 05:38
open dhtmlx forum
dhtmlxwindows and accordion - open window on over the whole page not just inside accordion's iframe?

hi

we have a accordion with inner html document which opens a dhtmlxwindow if a button is clicked. the code for opening the window is set within accordion's iframe.

resultWindow = dhxWins.createWindow("enterResultWindow", 0, 0, 1000, 650);

the window creates successfully but only inside the inner content of the accordion frame. how can we open it in the parent document which is the whole website page?

thx for a hint!
Answer posted by Alex (support) on Jan 18, 2010 06:33

Hello,

in order to open window in the parent document this window should be created in parent.

For example you can create dhxWins object on the main page (dhtmlxwindows libraries should be included in the main page too).

And to create a certain window you just need to call the following:

resultWindow = parent.dhxWins.createWindow("enterResultWindow", 0, 0, 1000, 650);