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

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -