Dhtmlx Windows

iam opening a html page inside dhtml window using createwindow and attachurl.But It shuld restrict when one window is currently opend,the same cannot be opened again without closing the existing opened window.How can i achieve this?


There isn’t built-in functionality to do that.


But you can create own script that can control attached urls. For example you can create an associative array (window id: url pairs). And onClose event can be used to delete url from this array


dhxWins.attachEvent(“onClose”,function(win){


/your code here/


return true


})