Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ram on Dec 23, 2009 23:15
open dhtmlx forum
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?
Answer posted by Alex (support) on Dec 24, 2009 01:00

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

})