title: Ajax async false is deprecated?
body: <p>I am using jQuery 1.7 and I use <code>async:false</code> for my AJAX requets, but I've learned that this function is deprecated.</p>
  
  <p>I need to use callback but this doesn't work:</p>
  
  <pre><code>$("#form").submit(function(e) {
  var cnf;
  
  $.ajax({
      type: "POST", 
      url: 'page.php', 
      data: $('#form').serialize(),
      async: true,
      success: function(responseText) { 
          if(responseText.indexOf('err') != -1) {
              cnf = "error";
          } 
          else {
              cnf = "success";
          }
          return callBack( cnf );
      }, 
      error: function() {
          cnf = "error";  
          return callBack( cnf ); 
      } 
  });
  
  
  if(cnf == "success")
  {
     alert('ok');
  }
  });
  </code></pre>
  
  <p>The HTML:</p>
  
  <pre><code>&lt;form id="form"&gt;
   &lt;input type="text" name="email"&gt;
   &lt;input type="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>If I use <code>async: false</code> this works. Using callBack I see the solution here: <a href="https://stackoverflow.com/questions/11576176/wait-for-a-jquery-ajax-callback-from-calling-function">wait for a jquery ajax callback from calling function</a></p>