有这么一个需求:客户端通过 XMLHTTP 取得服务器返回的XML数据
但这个过程需要几秒钟!
于是当前用户的窗口就处于Disabled状态现在需要在读取服务器数据的时候,在当前窗口显示一段动画,提示用户请稍候....能实现吗????
但这个过程需要几秒钟!
于是当前用户的窗口就处于Disabled状态现在需要在读取服务器数据的时候,在当前窗口显示一段动画,提示用户请稍候....能实现吗????
解决方案 »
- 如何用甘特图把GridView中的数据表示出来?
- aspx页面数据读取问题,急!!!
- App_data 数据库一点要新建吗?我添加现有项,无法读到里面的表啊T_T
- 程序设计问题
- 请教一个获取前一URL的问题
- HyperLink的前台调用变量问题
- 请高手进来指点membership成员管理问题~~~在线等...............................
- 如何在.Net的移动开发中获得手机号码或手机IMEI
- 怎样实现点击datagrid中的记录后弹出详细信息的窗口
- DataGrid中输入一列的数值,同时自动为另一列赋值?难!
- excel中,在不知道表名的情况下,如何读取第一张表
- [转载]几个常用的用正则表达式验证字符串的函数
当许放播放动画的时候diaplay=""
//抓取XML
function getXml(){}function loadFlash(){
setTimeout("getXml();",10000)}
页面载入 调用 loadFlash()
var yourSpan=document.getElementbyId("yourSpan")
yourSpan.style.display="";
} ;
{
var contentViewer = document.getElementById("contentViewer");
contentViewer.innerHTML = "<b style='color:red;'>Loading....<b>";
if (window.ActiveXObject)
{
httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
httpRequest = new XMLHttpRequest();
}
httpRequest.open("POST", "get.aspx", true);
httpRequest.onreadystatechange= function () {processRequest(); } ;
httpRequest.send(null);
}
function processRequest()
{
if (httpRequest.readyState == 4)
{
if(httpRequest.status == 200)
{
var contentViewer = document.getElementById("contentViewer");
contentViewer.innerHTML = httpRequest.responseText;
}
else
{
alert("Error loading page\n"+ httpRequest.status +":"+ httpRequest.statusText);
var contentViewer = document.getElementById("contentViewer");
contentViewer.innerHTML = "Error: can not get the content ("+ httpRequest.statusText +")";
}
}
else
{
var contentViewer = document.getElementById("contentViewer");
contentViewer.innerHTML = "<b style='color:red;'>Loading....<b>";
} }