title: jquery nested ajax calls formatting
body: <p>I have a requirement to make 6 ajax calls in succession based on data from the previous call.  I am nesting each call in the success of the previous call. my question is what are some good ways to format the code so that it doesnt end up a million rows across my editor?</p>
  
  <pre><code> $.ajax({
                  type: "POST",
                  url: "someScript/someScript.php",
                  data: form + "&amp;func=build",
                  success: function (result) {
                   if (result == "ok")
                   {
                     $.ajax({
                     type: "POST",
                     url: "someScript/someScript.php",
                     data: form + "&amp;func=someOtherFunc",
                     success: function (result) {
                          if (result == "ok")
                          {
                            $.ajax({
                             type: "POST",
                             url: "someScript/someScript.php",
                             data: form + "&amp;func=someOtherFunc",
                             success: function (result) {
                             if (result == "ok")
                             {
                               .....and so on
                             }
                             })
                           }
                        })
                      })
                     }
                   })
  </code></pre>
  
  <p>ignore brackets, syntax isnt important for this question.</p>