c# - ASP.NET MVC 4 Action on AJAX Request -


is there way call javascript function every time ajax request sent, , when call finished? know can individually each form onbegin , oncomplete functions, want universal one.

specifically, wait cursor show every time sends ajax call, , go default cursor when done.

with webforms

sys.webforms.pagerequestmanager.getinstance().add_beginrequest(beginrequest); sys.webforms.pagerequestmanager.getinstance().add_pageloaded(pageloaded); 

but need mvc 4.

any suggestions on how accomplish task appreciated, or alternatives if it's bad idea.

tr global ajax event handlers


Comments

Popular posts from this blog

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -