dhmlx windows


I created one dhtmlx windows in dialog.js as:

    var dhxWins = new dhtmlXWindows();        


    var w1 = dhxWins.createWindow(“w1”,350, 150,280,130);

I also created on dhtmlx window in create.js as :

var dhxWins = new dhtmlXWindows();

winEx = dhxWins.createWindow(“w1”,200,100,365,280);

createWin = dhxWins.createWindow(“w2”,200,200,400,200);

create.js is called in create.jsp, When a user click on createWin then createWin window opened. if user doesn’t give any name then an error pop-up is display which use dialog.js’s w1 to show the message.

Problem: The error message display behind the createWin window which should display over it. I tried with bringToTop, but it didn’t work as both are created with different dhtmlXWindows object.

please help


you can try to use different names for dhtmlxWindows objects:

var dhxWinsDlg = new dhtmlXWindows();


var dhxWinsCrt = new dhtmlXWindows();