|
|
|
无刷新取数据的一个例子
作者:佚名 来源:一亩三分地 点击: 日期:2007-03-23 |
|
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 ;
|
|
|
|
【文章评论】
【收藏本文】
【推荐好友】
【打印本文】
【论坛讨论】 |
相关文章: |
|
|
文章评论:(条) |
|
|
|
|
责任编辑:一分 声明:刊登此文章是为了传递更多信息,文章内容仅供参考,转载请注明出处。 |
|