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