废话不多说,主要是利用beforeSend来实现ajax载入等待过程的信息显示,是一张图片,可以正常显示,但是,但载入成功后,虽然success中的操作正常执行了,但是IE6浏览器中,下面文件载入状态栏却显示载入那种图片,而且很久。代码:$.ajax({
type:"GET",
url:"AjaxRequest/AutoComplete.ashx",
cache:false,
data:"",
beforeSend:function(){$("#msg").html("<img src=Images/Index/s_btn.png width=60 height=26 border=0 />");},
success:function(msg){$("#msg").html("success");}
});
下图就是我遇到的问题:
FF没问题,IE6有问题。
type:"GET",
url:"AjaxRequest/AutoComplete.ashx",
cache:false,
data:"",
beforeSend:function(){$("#msg").html("<img src=Images/Index/s_btn.png width=60 height=26 border=0 />");},
success:function(msg){$("#msg").html("success");}
});
下图就是我遇到的问题:
FF没问题,IE6有问题。
beforeSend:function(){$("#msg").html("<img src=Images/Index/s_btn.png width=60 height=26 border=0 />");},
success:function(msg){$("#msg").html("");}
beforeSend:function(){$("#msg").html("<img src=Images/Index/s_btn.png width=60 height=26 border=0 />");return;},不行的话再试试SUCCESS的时候加个延时
success:function(msg){
settimeout(function(){$("#msg").html("success")},100);
}