sample code :
var p = 0;
dhxWins.forEachWindow(function(){p++;});
if (p>4) {
alert(“Too many windows”);
return;
}
it count all loaded windows object, how to count loaded window object with specific id, so i can avoid duplicate window with same id?.
thx
There is window(id) method which return window object. If window with the certain id doesn’t exist, it returns true:
if(!dhxWins.window(id)){
/window creation code/
}