title: IE 9 Javascript error c00c023f
body: <p>I came across this error only on IE9:</p>
  
  <blockquote>
    <p>SCRIPT575: Could not complete the operation due to error c00c023f. </p>
  </blockquote>
  
  <p>The error happened on this line: <code>if ((a.responseXML) &amp;&amp; (a.readyState==4)) {</code></p>
  
  <p>I cant figure it out why this happened, and it seems to work very well in other browsers. </p>
  
  <p>and this is my javascript code:</p>
  
  <pre><code>var a = new XMLHttpRequest();
  a.open("GET",'/cust/ajax/getresult.php?qk=nnf87&amp;arg1='+pzid,true);
  a.onreadystatechange = function () {
      if ((a.responseXML) &amp;&amp; (a.readyState==4)) {
          var N = a.responseXML.getElementsByTagName('result')
          sequence = N[0].firstChild.data;
          var SEQ = sequence.split(",");
          var num = SEQ.length;
                      var sum = 0;
                      for(var n=0;n&lt;num;n++){sum = sum + (SEQ[n]*1);}
          //document.getElementById("the_number_of").innerHTML = sum;
          var date = new Date();
          date.setTime(date.getTime()+(2*60*60*1000));
          document.cookie='cpa_num='+sum+'; expires= '+date.toGMTString()+'; path=/';
      }
  
  }
  </code></pre>