title: Posting a form multiple times with jQuery Deferred
body: <p>I've been testing a bit with using $.Deferred() in jQuery lately and got a question. While deferred and promises are great for ajaxcalls that's only intended to run once, I also got a form for adding new users that posts with ajax needs to be runnable multiple times. Now this crashes with the binary(ish) state of a deferred/promise as once they're resolved or rejected it'll keep that state. So my questions are:</p>
  
  <p>-Can I use deferred for a task that will be called multiple times?
  -If possible, is it recommended to use deferred for this or should I stick to the old method with just using the success/error callbacks of $.ajax?</p>
  
  <p>Here some code I got together for posting the form, which works great once, but not multiple times.</p>
  
  <pre><code>var submittingUser = new $.Deferred();
  var savingUser = submittingUser.pipe(function(data) {
      return $.post('ajax.php', data);
  });
  
  $("#add_new_user").click(function() {
      var data = $("#add_user_form").serialize();
      submittingUser.resolve(data);
      return false;
  });
  
  savingUser.then(function() {
      //Success
  }, function() {
      //Failed
  });
  </code></pre>