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

Admob integration with pygame in android -

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

Function that returns a formatted array in VBA -