Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Phil on Mar 26, 2009 02:34
open dhtmlx forum
modal dhtmlxWindow and onclose event

Hi,

I have a modal dhtmlxWindow with a form and 2 buttons Cancel and Validate with a close function attach.
I also attach a onclose event to the window (work perfectly).

I would like to know which button fired the event to make a validation processing or directly close the window.

Is it possible and how ?

Thanks
Answer posted by Alex (support) on Mar 26, 2009 07:41

Hello, 

This issue doesn't related to window component. As window doesn't handle the events inside its content.

As the recommendation ... You can set necessary onclick handlers for each button: <input onclick="validate()" ...>