I'm experimenting with using a dojo Dialog for form input.
I open up a dojo dialog, add some data to my fields, and then click on submit. Submit is just a regular old submit which submits my form component. My form component is asynchronous and updates some parts of the web page after its listener has finished. So far so good.
I also need it to close the dialog, and scrub the fields. How can I invoke some javascript to do this, once the asynchronous submit has returned successfully?
My current approach is to update a script component, which checks a flag (set by the form listener) to see if we just had an asynchronous form submission, and if true, includes a .script which takes the desired javascript actions.
But it seems like a lot of work (and a lot of separate pieces) just to invoke some javascript after the form submission. Is there a better way?
Thanks, J -- Julian Wood <[EMAIL PROTECTED]> Software Engineer Teaching & Learning Centre University of Calgary http://tlc.ucalgary.ca