用户操作
[留言]  [发消息]  [加为好友] 
订阅我的博客
XML聚合    FeedSky
订阅到鲜果
订阅到Google
订阅到抓虾
2002pine的公告
文章分类
    存档

    原创  无刷新取数据的一个例子 收藏

     function getResultValue() { var oXmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); oXmlHttp.Open("POST", "ProcessReport.aspx", false); oXmlHttp.send(""+dateFrom+""+type+""+dateTo+""); //window.alert(oXmlHttp.ResponseText); if (oXmlHttp.ResponseText!="") { window.document.all.pResult.style.display=""; window.document.all.pResult.innerHTML=oXmlHttp.ResponseText; window.document.all.DivWait.style.display="none"; document.all.btnLogin.style.display=''; window.document.all.divPrint.style.display=''; //window.document.all.btnExport.style.display=""; return; } setTimeout("getResultValue()",1000); }

     

     XmlDocument xmldoc = new XmlDocument();
       xmldoc.Load(Request.InputStream); 

       type=xmldoc.SelectSingleNode("//type").InnerText ;
       if (type=="close")
       {
         return;
       }

       dateFrom=xmldoc.SelectSingleNode("//dateFrom").InnerText ;
       dateTo =xmldoc.SelectSingleNode("//dateTo").InnerText ;

    发表于 @ 2004年08月14日 10:42:00 | 评论( loading... ) | 编辑| 举报| 收藏

    旧一篇:网上取数据的一个例子 | 新一篇:关于view的触发器的例子.

    • 发表评论
    • 评论内容:
    •  
    Copyright © 2002pine
    Powered by CSDN Blog