解决方案 »

  1.   

    来自W3C的一个例子片段:
    <script type="text/javascript">
    var xmlhttp;
    function loadXMLDoc(url)
    {
    xmlhttp=null;
    if (window.XMLHttpRequest)
      {// code for Firefox, Opera, IE7, etc.
      xmlhttp=new XMLHttpRequest();
      }
    else if (window.ActiveXObject)
      {// code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    if (xmlhttp!=null)
      {
      xmlhttp.onreadystatechange=state_Change;
      xmlhttp.open("GET",url,true);
      xmlhttp.send(null);
      }
    else
      {
      alert("Your browser does not support XMLHTTP.");
      }
    }function state_Change()
    {
    if (xmlhttp.readyState==4)
      {// 4 = "loaded"
      if (xmlhttp.status==200)
        {// 200 = "OK"
        document.getElementById('T1').innerHTML=xmlhttp.responseText;
        }
      else
        {
        alert("Problem retrieving data:" + xmlhttp.statusText);
        }
      }
    }
    </script>由ajax出现了很多的jQuery,Ext,ajaxanywhere等等包含异步的js组件。不过这个是最基础的。不知道你能否看得懂
      

  2.   

    \
    ajax 的异步提交我弄过,我只是想总结一下所有的方法
      

  3.   

    还有别的方法吧,jquery,extjs、easyui等等
      

  4.   

    还有别的方法吧,jquery,extjs、easyui等等晕 这些只是封装了ajax而已  
      

  5.   

    还有别的方法吧,jquery,extjs、easyui等等晕 这些只是封装了ajax而已  
    哦哦,我一直理解错了
      

  6.   

    我一般都用jquery 的$.ajax()