title: XML ActiveXObject IE. Object doesn't support this action
body: <p>I am trying to work with xml and javascript. In firefox it works great using XMLHttpRequest but in IE (6-8) I am getting the error:</p>
  
  <pre><code>Object doesn't support this action
  </code></pre>
  
  <p>I am using the following function:</p>
  
  <pre><code>   function createRequestObject(){
       var request;
      try {
        request = new XMLHttpRequest();
      } catch (trymicrosoft) {
          try {
                  request = new ActiveXObject("Msxml2.XMLHTTP");
          } catch (othermicrosoft) {
                  try {
                          request = new ActiveXObject("Microsoft.XMLHTTP");
                  } catch (failed) {
                          request = false;
                  }
          }
      }
      return request;
  }
  </code></pre>
  
  <p>And then calling it with:</p>
  
  <pre><code>  var xhttp = createRequestObject();
      xhttp.open("GET","myfile.xml",false);
  ...
  </code></pre>
  
  <p>Any thoughts??</p>