Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Enrique Prieto on Feb 08, 2009 06:45
open dhtmlx forum
dhtmlxWindows onClose Event bug

Hello,

First:
- You have a bugs in your documentation at the dhtmlxWindows -> Events page

myWin.attachEvent("onClosed", function(win) {
    alert("Window with ID " + win.getId() + " will be closed.");
});

The event Name is "onClose" without "d"

Second:
- When the event shots, the function execute but the window dont close
Answer posted by Alex on Feb 09, 2009 08:24

Hello,

Sorry for the misleading information in the documentation.

We will change the event name.

In order to confirm window closing the event handler should return true:

myWin.attachEvent("onClosed", function(win) { 
  alert("Window with ID " + win.getId() + " will be closed."); 

return true
});