title: XMLHttpRequest's open() fails in Chrome
body: <p>I am trying to patch up a bit of AJAX that doesn't work in Chrome. It's not my script and I'd rather not convert the whole thing to jQuery.</p>
  
  <pre><code>xmlhttp.open("GET", query, true);
  xmlhttp.onreadystatechange = function () {
      if (xmlhttp.readyState == 4) {
          console.log(xmlhttp.responseText);
      }
  }
  xmlhttp.send();
  </code></pre>
  
  <p>This actually outputs something in the log while using Internet Explorer, but when in (Ch)rome I get an empty string, since the JS debugger tells me that <code>GET</code> failed. The target URL is correct since it works in IE, but it is some kind of ASP.NET script which inner workings I'm not very familiar with (I do the HTML, CSS and JavaScript around here).</p>
  
  <p>Why could it be that IE is allowed to retrieve the information from the target, but not Chrome? When using Chrome <code>xmlhttp</code> is a <code>XMLHttpRequest</code> and IE gets some kind of <code>ActiveXObject</code>.</p>
  
  <p><strong>Edit.</strong> I found some possible solutions <a href="https://stackoverflow.com/questions/1742049/jquery-ajax-problem-in-chrome">here</a>. <code>Response.Close()</code>, no async or specified/empty data type. It's jQuery though.</p>
  
  <p><strong>Edit #2.</strong> <a href="http://db.tt/ybKwIMcG" rel="nofollow noreferrer">What Chrome is saying about my headers.</a></p>