title: Is there a way to do a series of jQuery AJAX calls?
body: <p>When submitting a web form, I would like to validate the server-side files listed in the form data (check their formats, essentially, through a set of RESTful scripts running on the server).</p>
  
  <p>I might have two file pathnames, but I could have more.</p>
  
  <p>How do I chain a series of validation AJAX calls, so that, if any one request fails with a non-200 status, the entire chain fails and I (for example) redirect to an informative error page?</p>
  
  <p>In SGE, there is a hold (<code>-hold_jid</code>) option that allows a "master" job to succeed or fail based on whether all children jobs complete or fail. I'm wondering if something similar is possible in jQuery, and if there are examples to get me up to speed quickly?</p>