javascript代码:
function _startLoad()
{
  var xmlHttp = XmlHttp.create();
      xmlHttp.open("GET", sSrc, true);
      xmlHttp.onreadystatechange = function () {
   
       if (xmlHttp.readyState == 4) 
       {
          var str = xmlHttp.responseXML;
       }
      };
    
    window.setTimeout(function () {
      xmlHttp.send(null);
    }, 10);
}

解决方案 »

  1.   

    What is XMLHTTP?
    XMLHTTP is a component of MSXML. XMLHTTP is designed to pass XML documents to programs over the Internet using the standard Hyper-Text Transfer Protocol (HTTP). An example of a program using XMLHTTP is the Outlook Web Access Client, which uses XMLHTTP to retrieve e-mails from a mail server. Another common use is for posting XML data to a web server.
    http://www.microsoft.com/technet/security/bulletin/MS02-008.mspxhttp://www.devx.com/getHelpOn/10MinuteSolution/20358/1954?pf=true
      

  2.   

    XMLhttp控件在哪里?需要另外下载吗?
      

  3.   

    它不是控件,不需下载!它在ASP里也有的用过,是系统内置的一个对像(不知这么说是不是准确?)
      

  4.   

    http://hedong.3322.org/archives/000055.html
    到这里去看看,xmlhttp是微软的一个COM组件。
      

  5.   

    说错了,xmlhttp不是微软的。微软的MSXML里面实现了xmlhttp
      

  6.   

    可以给我一个用post方式调用xmlhttp的简单例子吗?
      

  7.   

    http://expert.csdn.net/Expert/topic/2427/2427883.xml?temp=.1153376
      

  8.   

    客户端
    <html><head>
    <script language="javascript">
    function sendXml()
    {
      var http = new ActiveXObject("Microsoft.XMLHTTP");
      http.open("POST", "TestXml.aspx", false);
      http.setRequestHeader("Content-Type","text/xml");
      http.send("<root>hello" + Math.random() + "</root>");
      if (http.status == 200)
    alert(http.responseText);
      else
            alert(http.statusText);
    }
    </script>
    </head><body>
    <input type="button" value="send" onclick="sendXml()">
    </body></html>
    服务器端
    <%@ Import Namespace="System.Xml" %>
    <script language="C#" runat="server">
    void Page_Load(Object o, EventArgs e)
    {
      if (Request.ContentType.ToLower() == "text/xml")
      {
        XmlDocument xmldoc = new XmlDocument();
        xmldoc.Load(Request.InputStream);
        Response.Write(xmldoc.InnerXml);
        Response.End();
      }
    }
    </script>