title: SCRIPT5 : Access denied error on ie with XMLHttpRequest
body: <p>I've got a SCRIPT5 error with an XMLHttpRequest and I can't fix the problem even with this question : <a href="https://stackoverflow.com/questions/5793831/script5-access-is-denied-in-ie9-on-xmlhttprequest">SCRIPT5: Access is denied in IE9 on xmlhttprequest</a></p>
  
  <p>Here's my code : </p>
  
  <pre><code>function getXDomainRequest()
  {
          var xdr = null;
  
  if (window.XMLHttpRequest)
    {// code for IE7+, Firefox, Chrome, Opera, Safari
      xdr=new XMLHttpRequest();
    }
  else
    {// code for IE6, IE5
      xdr=new ActiveXObject("Microsoft.XMLHTTP");
    }
          return xdr;        
  }
  
  function sendData()
  {
          var xdr = getXDomainRequest();
          xdr.onload = function() 
          {
                  var xml = xdr.responseXML; 
                  var prod = xml.documentElement.getElementsByTagName("produit");          
          }
          xdr.open("GET", "http://www.mysite.tm.fr/page.php?var1="+ var1 +"");
          xdr.send();
  }
  </code></pre>
  
  <p>Any help will be very very very appreciated!</p>
  
  <p>Precision : The distant website returns me an XML content like this :</p>
  
  <pre><code>&lt;liste&gt;
  &lt;produits&gt;
  &lt;produit&gt;...&lt;/produit&gt;
  &lt;produit&gt;...&lt;/produit&gt;
  &lt;produit&gt;...&lt;/produit&gt;
  &lt;/produits&gt;
  &lt;/liste&gt;
  </code></pre>