Re-register javascript files after ajax callback complete

I have a button on my page that does an Ajax callback with an onclick javascript method. I want to re-register ALL the Javascripts on the page after the ajax is completed. I have a common init method that I call on ajaxComplete with some functions called after ajax completion. However, there are several javascripts, and in different files. Is it possible to get all the javascript files (based on the file names on the server) and re-register them onAjax complete? I am using C#/.NET (.NET ajax) and if there's a way to register the files via code behind (on ajax complete). Currently I have a javascript method that is called on ajax completion, is there any way to place this inside code-behind to re-register the javascripts?

以上就是Re-register javascript files after ajax callback complete的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准