I want a JavaScript callback on successful save of an active form. Where can I put the JavaScript callback?
Do I need to make the form AJAX
in order to do this or is is doable with regular (non-AJAX) forms?
In fact, I am going to put this form inside an iframe
(inside a jQuery UI modal dialog).
When the form in the iframe
is saved I need to do two things:
- close the dialog;
- update the list of things in a
<select>
of the main HTML document.