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.
Comments
Post a Comment