dhtmlxWindows not appearing

Hello, I have an app that has a layout of “2E”. I want to display a window but it’s just not appearing. I’m using 2.5 professional and IE 8 in compatibility mode.

First, I create a layout then I attach a grid to the layout. After that I create a window in two different ways. In one way I simply create a regular window via dhtmlxWindows(). The second approach is to create a window via dhtmlxLayout (myLayout.dhxWins.createWindow(…)). Neither displays a window. Here’s my code snippet:

dhxWins = new dhtmlXWindows();
dhxWins.enableAutoViewport(false);
dhxWins.setViewport(450, 200, 400, 380);
dhxWins.attachViewportTo("errorDialog");
dhxWins.vp.style.border = "#909090 1px solid";
dhxWins.setImagePath("/my/web/common/dhtmlx/dhtmlxWindows/codebase/imgs/");
w1 = dhxWins.createWindow("w1", 20, 10, 320, 240);
w1.setText("dhtmlxWindow");
w1.button("close").disable();
dhxWins.window("w1").show();
dhxWins.window("w1").bringToTop();


var popupWindow = myLayout.dhxWins.createWindow('w2',20,10,320,240);
popupWindow.show();
popupWindow.bringToTop();
popupWindow.stick();

Hello,

check that all necessary libraries are included. The ready sample can be found in windows package:

dhtmlxWindows/samples/02_viewports/02_specify.html
dhtmlxWindows/samples/02_viewports/03_render_as.html

You might need to define

Actually, to solve this I just went w/default behavior and it worked. I guess I was trying to get too fancy w/

, etc:
dhxWins = new dhtmlXWindows();
dhxWins.setImagePath("../common/dhtmlx/dhtmlxWindows/codebase/imgs/");
w1 = dhxWins.createWindow("w1", 30, 40, 320, 240);
w1.setText("dhtmlxWindow");
w1.center();
//w1.button("close").disable();
w1.setModal(true);