Hello,
this might be a dumb question, I apologize ahead for my ignorance.
When using windows I initialize the window obj and reuse it in functons to create windows, the question is do I need to unload this after every window is closed or can just reuse it.
so for example I have
var dhxWin = new new dhtmlXWindows();
Then I have several functions that use the dhxWin object like
function win1(){
var w1 = dhxWins.createWindow(id, x, y, w, h);
....
}
function win2(){
var w2 dhxWins.createWindow(id, x, y, w, h);
...
}
Hello
If you need to use the same window with the same contant each time you can use onClose event and hide() window by it. And then create some function to open it again
Hi Darya,
thanks for your response, but I think you misunderstood, I will try to rephrase
One I initialize
dhxWins = new dhtmlxWindows();
can I keep reusing dhxWins to create new windows throught the application? or do I need to unload dhxWins before I create new window?
Ok Sorry…
Correct, single dhxWins is enough for all app, just make sure ids will different, i.e. if you have w1 do not create window with the same id, if you will call w1.close(), after this you can create window with w1 id
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan