title: Jquery ajaxrequest xhr.status code 0 but html status code 200
body: <p>This is not a cross site request problem as most googled answers to my questions consists of. </p>
  
  <p>I'm getting xhr.status 0 och xhr.statusText "error" when trying to make an ajax request with jquery functions .get and .load. In Firebug though, the requested page is loaded with html status code 200, I can read the text in the response and the response header looks ok. </p>
  
  <p>My code: </p>
  
  <pre><code>  function GetProjectTask(e) {
      var loader = $('#' + e + 'tasks div.loader');
      var content = $('#' + e + 'tasks div.content');
      var img = $('#' + e + 'tasks img.collapseimg');
      if (loader.html() == null || loader.html().trim() == '') {
          if (content.html() == null || content.html() == '') {
              img.attr('src', 'images/expanded.gif');
              loader.html('&lt;img src="images/loading.gif" alt="Wait..."&gt; Loading support tasks');
              content.load('includes/my' + e + 'tasks.php',
                  function (response, status, xhr) {
                      if (status == "error") {
                          var msg = "Sorry but there was an error: ";
                          alert(msg + xhr.status + " - " + xhr.statusText);
                      }
                  }
              );
              return;
          }
      }
      content.empty();
      loader.empty();
      img.attr('src', 'images/collapsed.gif');
    } 
  </code></pre>
  
  <p>Server: IIS v.7.5
  Jquery: v1.6.2</p>
  
  <p>Any ideas?</p>