var xmlHttp;
        function createXMLHttpRequest()
        {
            if(window.ActiveXObject)
            {
                xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
            }
         *   else if(window.XMLHttpRequest)
            {
                xmlHttp = new XMLHttpRequest();
            }
        }
  * 行 缺少物件,謝謝,大俠們幫助下.

解决方案 »

  1.   

    new XMLHttpRequest();new ActiveXObject("Microsoft.XMLHTTP");这里不就是内置的XMLHttpRequest对象的实例?
      

  2.   

    这句就好使xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    *行的可以不要
      

  3.   

    else if(window.XMLHttpRequest)
     {
         xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
     }
      

  4.   

    hi, dandysunnyYour code runs well both in my IE 6 and FF 1.0.3.Check some other hack!
      

  5.   

    thanks, the code runs well yestoday, bur today show the wrong,I alse forget modifying somewhere.