![](/img/trans.png)
[英]ASP.NET Code generated by Ajax.ActionLink stopped working after Upgrading to JQuery 2.0.1
[英]code stopped working after upgrading jquery library to version 1.10
當用戶單擊頁面上的鏈接/按鈕時,我正在使用下面的jquery代碼來顯示loading.gif。
<div class="progress-indicator">
<img src="/myapplication/images/loading.gif" alt="" />
</div>
<script>
$j(window).bind(
$j.browser.opera ? 'unload' : 'beforeunload',
function(){
//display image container
$j('.progress-indicator').css( 'display', 'block' );
//set a little timeout and force re-displaying of the image
//this can work around IE behavior, that 'freezes'
//animations during a submit
setTimeout( function() {
$j('.progress-indicator > img').attr( 'src',
$j('.progress-indicator > img').attr('src')+'?reload' );
}, 50 );
} );
</script>
直到我將jquery升級到版本1.10.0之前,它與'jquery version 1.5.1'一起工作都很棒。 該代碼不再起作用。
有人可以幫我嗎? 非常感謝您的所有幫助和建議。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.