title: "Object doesn't support this property or method" AJAX Error in IE 7,8 & 9
body: <p>I've seen this error reported a few times, but have not come across a solution yet - here's my scenario.</p>
  
  <p>I'm using an AJAX call which works perfectly in FF, Safari, Chrome &amp; IE6. However in IE8, IE7 and IE9 I'm getting the following error, then the page just hangs on the AJAX loader .gif I have set up:</p>
  
  <pre><code>Line: 84
  Char: 3
  Error: Object doesn't support this property or method
  </code></pre>
  
  <p>The script in question seems to involve this:</p>
  
  <pre><code>function placeMarkers() {
  
  if (window.XMLHttpRequest)
  { // code for IE7+, Firefox, Chrome, Opera, Safari
      var xmlhttp=new XMLHttpRequest();
  }
  else
  { // code for IE6, IE5
      var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  
  xmlhttp.open("GET","/maps/items.xml.php?childcare=&lt;?php echo $_GET['childcare'];?&gt;",false);
  xmlhttp.send();
  xmlDoc=xmlhttp.responseXML; 
  }
  </code></pre>
  
  <p>When I refresh the page in IE9 the script seems to work, but not when a search is performed using the form.</p>
  
  <p>The line referred to in the error is:</p>
  
  <pre><code> var xmlhttp=new XMLHttpRequest();
  </code></pre>
  
  <ul>
  <li><p>Just for your information, the XML file that the script opens, is generated with PHP because it is generated depending on a $_GET querystring.</p></li>
  <li><p>ALSO, I have  two other AJAX functions on the page, which both do the browser check as the one above does - not sure if this would cause a problem?</p></li>
  <li><p>The website is built on a Wordpress installation.</p></li>
  <li><p>The website includes JQuery and Google Maps API scripts (though I don't see how this could cause an issue?)</p></li>
  </ul>
  
  <p>If anyone has any ideas, please let me know - this is all I need to fix to get a project complete. Also let me know if you need any more info, and I'll provide it.</p>