Suppose you have an update panel on the Page and you want to execute some java script code after the AJAX request is complete. i.e. After execution of the function => WebForm_DoPostBackWithOptions(
You can achieve this by below code.
//Write this outside -> $(document).ready();
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(function() {
alert("Your code here!!");
});
Note: There can be some other ways to do this. But this one is compatible to Internet Explorer 8 too.
You can achieve this by below code.
//Write this outside -> $(document).ready();
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(function() {
alert("Your code here!!");
});
Note: There can be some other ways to do this. But this one is compatible to Internet Explorer 8 too.
No comments:
Post a Comment