title: Ajax app works in some browers, not others
body: <p>My ajax app works fine in Firefox, but not in IE8.  Specifically, the ajax functionality doesn't work.  </p>
  
  <p>Here's the code I'm using:</p>
  
  <pre><code>function createXMLHttpRequest()
  {
    if (window.XMLHttpRequest)
    {
      // code for IE7+, Firefox, Chrome, Opera, Safari
      return new XMLHttpRequest();
    }
  
    if (window.ActiveXObject)
    {
      // code for IE6, IE5
      return new ActiveXObject("Microsoft.XMLHTTP");
    }
  
    return null;
  }
  </code></pre>
  
  <p>This is the error:</p>
  
  <pre><code>Object doesn't support this property or method
  ajax.js
  Code:0
  Line : 6
  Char : 5
  </code></pre>
  
  <p>It works perfect in Firefox.</p>
  
  <p>What is the problem with my code ?</p>