Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by deuchman on May 16, 2008 10:51
open dhtmlx forum
dhtmlWindow

Hi,

First, I have a div on full page (width=100%; height=100%).
I use a dhtmlWindow on mode GPL and I would like that window is visible on the div.
My window is not visible, i must define the hidden div to see the window.

Here is the code for creating the window :

var dhxWins=new dhtmlXWindows();
dhxWins.enableAutoViewport(false);
dhxWins.setViewport(350,50,400,400);
dhxWins.vp.style.border="#909090 1px solid";
dhxWins.setImagePath("ressources/img/");
dhxWins.enableAutoViewport(true);
var w1=dhxWins.createWindow("w1",10,10,320,240);
w1.setText("dhtmlxWindow");
w1.bringToTop();
w1.bringToBottom();
GetId(div).innerHTML = retour;
w1.attachObject(div);
w1.show();

I use ajax for load this window.
Can i do ?

Thank you for your help
Answer posted by Support on May 19, 2008 06:07

You mixed code for different viewport initialization ways, if you need to have fixed viewport, the next code will be enough

dhxWins.enableAutoViewport(false); 
dhxWins.setViewport(350,50,400,400);
// dhxWins.enableAutoViewport(true);  not necessary

The next two command used to change window inside of siblings hierarchy and also not necessary in your case

//w1.bringToTop();
//w1.bringToBottom();

If problem still occurs - please check used z-Indexes, maybe you have some absolute positioned content over window.
You can change initial z-Index value of window as

dhxWins.zIndexStep=NN;

>>I use ajax for load this window.
There is no built-in support for loading data in dhtmlxWindow by AJAX