javascript函数不能调用ajax updatepanel [英] javascript function not call on ajax updatepanel
问题描述
你好,
我正在使用javascript功能。它工作正常,但在gridview上使用ajax updatepanel显示数据后,javascript函数无效。
javascript函数:
Hello,
I am using javascript function. it is working properly but after using ajax updatepanel on gridview for shows data then javascript function not working.
javascript function:
$(function () {
alert("ok");
});
仅在页面加载但不是ajax调用时加载。需要在每页请求时加载此功能。
请帮忙。
谢谢
Shubham Gupta
load only when page load but not ajax call. need to load this function every page request.
Please help.
Thanks
Shubham Gupta
推荐答案
(function(){
alert(< span class =code-string> ok);
});
(function () { alert("ok"); });
仅在页面加载但不是ajax调用时加载。需要在每页请求时加载此功能。
请帮忙。
谢谢
Shubham Gupta
load only when page load but not ajax call. need to load this function every page request.
Please help.
Thanks
Shubham Gupta
http://forums.asp.net/t/1982846.aspx?How+to+run+javascript+after+updatepanel+execution+已完成 [ ^ ]
试试这个
Try this one
function pageLoad() {
这篇关于javascript函数不能调用ajax updatepanel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!