2012-06-14 121 views
1
<script type="text/javascript"> 
    $(document).ajaxStop($.unblockUI); 
    $(document).ready(function(){ 
     $('#viewSOA').click(function(){ 
      $.blockUI({message:'<h3>Loading,Please wait...</h3>'}); 
      location.reload(); 
     }); 
    }); 
</script> 

我正在使用此脚本来显示blockUI。当我在Firefox或Chrome中测试时,它可以工作。但是,当我在Internet Explorer中单击viewSOA链接时,它不起作用。blockUI无法在Internet Explorer上工作

我该如何解决这个问题?

+0

好的。我会做 – sudo

+1

你正在重新加载页面...可能IE在你的消息显示之前刷新页面?你无法控制我害怕的这种行为。 –

+0

谢谢。它解决了 – sudo

回答

0

只是避免location.reload();

试试这个:

<script type="text/javascript"> 
    $(document).ajaxStop($.unblockUI); 
    $(document).ready(function(){ 
     $('#viewSOA').click(function(){ 
      $.blockUI({message:'<h3>Loading,Please wait...</h3>'}); 
     }); 
    }); 
</script> 

这是为我工作。

相关问题