title: Determine if $.ajax error is a timeout
body: <p>I'm utilizing the magic of <code>jQuery.ajax( settings )</code>.</p>
  
  <p>However, I'm wondering if anyone has played with the timeout setting much?</p>
  
  <p>I know it's basically for dictating the local time for a request, but can it trigger anything if the timeout is reached?  Or does it simply stop listening for a response?</p>
  
  <p>Reading the jQuery site, I can see there are no arguments passed, so it seems like a simple setting with one capability.  Which is fine.  </p>
  
  <p>But, I'd like to trigger an alert or some function if the timeout is reached. I can see that the error setting doesn't get triggered, in this case.</p>
  
  <p>Here's my snippet:</p>
  
  <pre><code>$("form#testform").submit(function(){ 
  
   var allFormValues = $("form#testform").serialize(); 
  
     $.ajax({
      cache:false,
      timeout:8000,  // I chose 8 secs for kicks
      type:"POST",
      url:"someurl.php",
      data:allFormValues,
      error:function(){ alert("some error occurred") },
      success:function(response){ alert(response); }
     });
  
  });
  </code></pre>
  
  <p>Does anyone know how to work more with timeout?</p>