Categories | Question details Back To List | ||
How do I trap events in a form loaded in a window with attachURL? 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 Answer posted by Alex (support) on Mar 23, 2009 02:09 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 ( http://dhtmlx.com/docs/products/dhtmlxWindows/samples/init/inner_close.html ) can help |