Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Chris on Dec 11, 2009 07:10
open dhtmlx forum
Windows not showing up in Chrome 3.0.195.33 or FireFox 3.5.5

My webpage consists of a layout (3U) declared globally as:
dhxLayout = new dhtmlXLayoutObject(document.body, "3U");

In cell "a" I have a ThinkGeo ASP.NET Map control. The other cells contains dhtmlx grids.

I declare a global dhxWins as follow:

dhxWins = dhxLayout.dhxWins;
dhxWins.enableAutoViewport(true);
dhxWins.setImagePath("../dhtmlxWindows/codebase/imgs/");
dhxWins.setSkin("dhx_black");

Based on certain actions, I create a "dialog" window as:
var dlg = dhxWins.createWindow("findDlg", 0, 0, 330, 150);
dlg.setText(mainToolbar.getItemToolTip(itemId));
dlg.denyResize();
dlg.denyPark();
dlg.button("close").hide();
dlg.button("park").hide();
dlg.button("stick").hide();
dlg.button("help").hide();
dlg.button("dock").hide();
dlg.button("minmax1").hide();
dlg.button("minmax2").hide();
dlg.attachObject("findContainer", true);
dlg.centerOnScreen();
dlg.setModal(true);


This all works fine in IE8. However, in IE7, Chrome and FF, the Window does not appear, the rest of the webpage is "grayed" (as expected because the window is set to modal).

Please advise.
Answer posted by Alex (support) on Dec 11, 2009 07:42

You can try to use:

dhxWins = new dhtmlXWindows();

instead of

dhxWins = dhxLayout.dhxWins;

And moreover the latest dhtmlxlayout (2.5) doesn't have dhxWins property.

Answer posted by Chris on Dec 12, 2009 02:02
Actually - I am using dhtmlXWindows 2.5 Build 91111 and it _does_ support dhxWins.

I also followed your suggestion to use
dhxWins = new dhtmlXWindows() with the same result - no visibility on Chrome and FireFox.
Answer posted by Alex (support) on Dec 14, 2009 01:02
Please provide the complete demo to support@dhtmlx.com that reproduces the issue.
Answer posted on Dec 14, 2009 07:31
I fixed the issue. I had to change the zindex (and the releated start index) to something greater than 1000 for the dialogs to show up