title: ajax in internet explorer 8.0
body: <p>i have written code according to which on basis of first dropdown second dropdown is populated the code is working in mozilla but it is not working in internet explorer 8.0 </p>
  
  <pre><code>function stateListOnChange(str1) {
  
  var xmlhttp;
  if (str1 == "") {
      document.getElementById("CityList").innerHTML = "";
      return;
  }
  if (str1 == "") {
      document.getElementById("CityList").disabled = true;
  }
  else {
      document.getElementById("CityList").disabled = false;
  }
  if (window.XMLHttpRequest) {
      xmlhttp = new XMLHttpRequest();
  }
  else {
      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange = function () {
      if (xmlhttp.readyState == 4 &amp;&amp; xmlhttp.status == 200) {
          document.getElementById("CityList").innerHTML = xmlhttp.responseText;
       }
  }
  xmlhttp.open("GET", "../includes/xml_cities.asp?q1=" + str1, true);
  xmlhttp.send();
  </code></pre>
  
  <p>but the code is not working in ie 8.0 please give me the solution</p>