I am creating a window with dhtmlxWindow and loading a form into it via the attachURL() function. I want to be able to trap the submit button on the form so that when it is pressed I can perform a hide on the window.
Right now when the form is submitted the window turns grey and the user has to close the window themselves.
Anyway to do this? Maybe I am going about it all wrong and there is an alternate way.
Thanks
How do you load the page into the window - using Ajax or iframe?
In the first case ( win.attachURL(url,true) ), you can just use close() method for the window.
If you use iframe, the sample dhtmlxWindows/samples/init/inner_close.html ( dhtmlx.com/docs/products/dhtmlxW … close.html ) can help