Created
January 17, 2012 13:34
-
-
Save seraphy/1626644 to your computer and use it in GitHub Desktop.
ASP.NET4 Ajax UpdatePanelの非同期Load完了後のjavascriptでのハンドリング
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // http://msdn.microsoft.com/en-us/library/bb398976.aspx | |
| // http://msdn.microsoft.com/en-us/library/bb397499.aspx | |
| // http://msdn.microsoft.com/ja-jp/magazine/cc163413.aspx | |
| var pageReqMgr = Sys.WebForms.PageRequestManager.getInstance(); | |
| // 非同期通信完了後の処理 | |
| pageReqMgr.add_pageLoaded(function (sender, args) { | |
| var updatedPanels = args.get_panelsUpdated(); | |
| if (updatedPanels.length > 0) { | |
| for (var i = 0; i < updatedPanels.length; i++) { | |
| var panel = updatedPanels[i]; | |
| alert(panel.id); | |
| } | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment