jquery ajaxStop事件在IE9中不起作用
我们试图在多个异步ajax调用完成后隐藏加载程序图标。因此,我们需要使用ajaxStop事件。但这起事件并没有在ie9(windows mobile phone)中被炒鱿鱼。但是,ajaxStart可以工作。我们只在windows mobile phone的ie9中面临这个问题。它在桌面版本的IE9和IE8中工作。我们使用的是jquery 1.7版 以下是代码片段-jquery ajaxStop事件在IE9中不起作用,jquery,ajax,internet-explorer-9,Jquery,Ajax,Internet Explorer 9,我们试图在多个异步ajax调用完成后隐藏加载程序图标。因此,我们需要使用ajaxStop事件。但这起事件并没有在ie9(windows mobile phone)中被炒鱿鱼。但是,ajaxStart可以工作。我们只在windows mobile phone的ie9中面临这个问题。它在桌面版本的IE9和IE8中工作。我们使用的是jquery 1.7版 以下是代码片段- $(document).ajaxStop( function(){ $('#loader').hide(); }); 我
$(document).ajaxStop( function(){
$('#loader').hide();
});
我们有什么遗漏吗?检查一下,但您也在使用IE 9
//displays progress bar
$('.progress').ajaxStart(function () {
$(this).show();
}).ajaxStop(function () {
$(this).hide();
});
检查,但您的也在IE 9中工作
//displays progress bar
$('.progress').ajaxStart(function () {
$(this).show();
}).ajaxStop(function () {
$(this).hide();
});
您必须使async:true..bocz在IE上无法处理异步调用 检查下面的代码。这里您必须设置“async:true”…因此,您的代码应该在下面
var selectRows = $('#rowed3').getGridParam('selarrrow');
$.each(selectRows,function (index,id) {
$.ajax({
url:'addSign',
success: function (result) {
$("#progressbar").progressbar('option','value',currPercent);
},
async:true,
data:{
'id':id,
'details':sign
},
type:'post'
});
您必须使async:true..bocz在IE上无法处理异步调用 检查下面的代码。这里您必须设置“async:true”…因此,您的代码应该在下面
var selectRows = $('#rowed3').getGridParam('selarrrow');
$.each(selectRows,function (index,id) {
$.ajax({
url:'addSign',
success: function (result) {
$("#progressbar").progressbar('option','value',currPercent);
},
async:true,
data:{
'id':id,
'details':sign
},
type:'post'
});
我猜代码应该是$.ajaxStop(函数(){…})@KundanSinghChouhan,我认为在jQuery1.8中,
ajaxStop
应该只附加到文档中,比如$(document).ajaxStop(function(){})
我想代码应该是$.ajaxStop(function(){…})@KundanSinghChouhan,我认为从jQuery1.8开始,ajaxStop
应该只附加到像$(document.ajaxStop(function(){})