title: Coldfusion, 5 forms submit to iframe
body: <p>I have 5 forms in coldfusion that submit to one iFrame, and that iFrame calls another coldfusion page. My forms and iFrame are working fine. My problem is that I need to wait one form finish submitting to call submit of the another form.</p>
  
  <pre><code>$("#form1").attr('action', 'uploadPicturesVideos.cfm');
  $("#form1").attr('target', 'uploadIframe');
  $("#form1").submit();
  
  $("#form2").attr('action', 'uploadPicturesVideos.cfm');
  $("#form2").attr('target', 'uploadIframe');
  $("#form2").submit();
  
  $("#form3").attr('action', 'uploadPicturesVideos.cfm');
  $("#form3").attr('target', 'uploadIframe');
  $("#form3").submit();
  
  $("#form4").attr('action', 'uploadPicturesVideos.cfm');
  $("#form4").attr('target', 'uploadIframe');
  $("#form4").submit();
  
  $("#form5").attr('action', 'uploadPicturesVideos.cfm');
  $("#form5").attr('target', 'uploadIframe');
  $("#form5").submit(); 
  </code></pre>
  
  <p>My question is how can I wait form1 finish submitting to start submitting form2... form3... form4... form5</p>
  
  <p>Thanks</p>