Sunday, July 11, 2010

Execute Java Script Function After AJAX Request

The Follwing JS Code on 'endRequest' Function Will Be Execute After AJAX Request
Ex: After Submitting ASP.NET Form

function pageLoad() {
var manager = Sys.WebForms.PageRequestManager.getInstance();
manager.add_endRequest(endRequest);
}
function endRequest(sender, args) {

//Add Your JS Code Here
window.scrollTo(0, 300);
}

No comments:

Post a Comment