Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ozan B on Apr 16, 2009 01:10
open dhtmlx forum
DhtmlxLayout and DhtmlxWindow problem about center

Hi,

I use Full Screen dhtmlxLayout with layout view 3L. And when any link click in a cell b cell attachURL. At attachenturl i want to open a dhtmlxWindow.

But my problem is when i call the windows it was only center and show in b cell not all of the layout center. How can i fix this. Can you help me about this article...

Tnx
Ozan
Answer posted by Alex (support) on Apr 16, 2009 02:31
Hello, 

If you put the iframe inside the cell (attachURL method) and try to open window, the window will be shown only inside this iframe (for this document).

If you want to open dhtmlxwindow in the main page, you should initialize dhtmlXWindows on this page:

var wins = new dhtmlXWindows();
wins.setImagePath("imgs/");

var layout = new dhtmlxLayout(...);


And the window creation code can be called inside the page loaded into the layout cell:

var win = parent.wins.createWindow(...);

Answer posted by Ozan on Apr 17, 2009 07:50
i have same problem with tabbar.

i use your code's with tabbar but at this time explorer said " HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)",
i was fix this error but now the windows open top of the main screen not center the tabbar.

Thx.
Ozan
Answer posted by Ozan B on Apr 17, 2009 08:24

ok.

 

I found the fix.

 dhxWins.enableAutoViewport(false);
 dhxWins.attachViewportTo("a_tabbar");

add this in tabbar pages than everythin ok.

 

Thx

Ozan