jQuery ProgressBar和IE8

jQuery ProgressBar和IE8,jquery,internet-explorer-8,progress-bar,Jquery,Internet Explorer 8,Progress Bar,我在AJAXsync请求中使用jqueryprogressbar。Progressbar在FireFox中运行良好,但在IE8中始终显示100% 这是我的代码: var selectRows = $('#rowed3').getGridParam('selarrrow'); $.each(selectRows,function (index,id) { $.ajax({ url:'addSign',

我在
AJAX
sync请求中使用jqueryprogressbar。Progressbar在FireFox中运行良好,但在IE8中始终显示100%

这是我的代码:

var selectRows = $('#rowed3').getGridParam('selarrrow');
$.each(selectRows,function (index,id) {
  $.ajax({                            
          url:'addSign',
          success: function (result) {                                                 
        $("#progressbar").progressbar('option','value',currPercent);
         },
          async:false,
          data:{
          'id':id,
          'details':sign
               },
       type:'post'
});
当我加上

alert('111')
以前

$("#progressbar").progressbar('option','value',currPercent);
我看到Progressbar改变了它的“状态”

为什么它在IE中不起作用


抱歉,我跳过了一些代码。我认为这很重要。

Internet Explorer是否设置为怪癖模式?因为这通常会弄乱进度条。

检查下面的代码。。这里您必须设置“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'
});

查看此解决方案:


超时的建议对我来说效果很好

打开IE8s控制台(F12)并在此处发布错误消息IE未显示任何错误或警告。我已经创建了断点。已运行progressbar方法。但它并没有改变progressbar的状态,我已经运行了javascript:alert(document.compatMode)。它显示了“CSS1Compact”。我认为这是标准模式。