隨筆-199  評論-203  文章-11  trackbacks-0

          <script lanuage = "javaScript">

          //創(chuàng)建對象
          function createXMLHttpRequest(){
           if(window.ActiveXObject){
            xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");    
           }
           else if(window.XMLHttpRequest){
            xmlHttp = new XMLHttpRequest();
           }
          }

          //前臺界面事件調(diào)用的函數(shù)
          function checkName(){
           createXMLHttpRequest();
           xmlHttp.onreadystatechange = handleStateChange;
           var sql = "UserReg.aspx?";
           xmlHttp.open("GET",sql,true);
           xmlHttp.send(null);
          }

          //和服務(wù)器交互期間執(zhí)行的函數(shù)
          function handleStateChange(){
           if(xmlHttp.readyState == 4){
            if(xmlHttp.status == 200){   
            document.getElementById("divx").innerHTML = xmlHttp.responseText;
            }
           }
          }

          <script> 

          posted on 2009-04-28 07:53 Werther 閱讀(449) 評論(1)  編輯  收藏 所屬分類: 13.AJAX

          評論:
          # re: AJAX 核心三部曲 2009-05-19 10:59 | 網(wǎng)絡(luò)中漫步
          這是.net技術(shù)的AJAX  回復(fù)  更多評論
            

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 竹北市| 西吉县| 九龙城区| 锡林浩特市| 长垣县| 盘山县| 永川市| 宣化县| 六安市| 白水县| 彝良县| 秦皇岛市| 永吉县| 霍邱县| 晋城| 斗六市| 莫力| 前郭尔| 日喀则市| 峨边| 桂东县| 铜鼓县| 广灵县| 咸阳市| 宜兴市| 民乐县| 水城县| 靖江市| 香格里拉县| 微山县| 张家川| 常德市| 桓仁| 闻喜县| 兰西县| 太康县| 西贡区| 宿州市| 兖州市| 商河县| 梁山县|