更新面板是运行preventing的JQuery [英] update panel is preventing JQuery from running
问题描述
我有与美元的运行p $ pventing jQuery的更新面板的问题。就像加载为第二部分,但页面后jquery的页面加载时,它会删除Jquery的影响吧。我跑控制台和放大器jQuery的功能;它做工精细。还我删除从页面中的UpdatePanel,做工精细只是问我如何解决更新面板的问题?
I have problem on with update panel that preventing jquery from running. like when the page loading the jquery for fraction of second but after the page loaded it will remove Jquery effect it. I ran the jquery function on console & it work fine. also I remove the updatepanel from the page and work fine just asking how can i fix the update panel problem ?
推荐答案
由于从更新面板的调用是异步的jQuery是不叫(加载)异步调用过程中看到的更新面板问题与jQuery
As your call from update panel is Asynchronous jquery is not called(loaded) during asynchronous call see Update panel issue with jquery
请尝试以下操作:
$(document).ready(function () {
BindEvents();//your jquery method
});
本脚本标签绑定BindEvents方法。它主要使用支持的Jquery
为更新面板的调用是异步的。
This script tag binds the BindEvents method .It main use to support the Jquery for Update panel as the call is Asynchronous
<script type="text/javascript">
// Create the event handler for PageRequestManager.endRequest
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(BindEvents);// bind BindEvents method to support update panel
</script>
这篇关于更新面板是运行preventing的JQuery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!