Firstly is there a way to turn JQuery Ajax On or Off globally? I’m looking for something similar to this http://api.jquery.com/jQuery.fx.off/ – but for $.ajax.
Secondly what is the best way to set an On/Off flag based on whether a user is logged in?
I am using ASP.NET MVC3.
Ok got it sorted – extend the $.ajax method.
Then I simply set
$.ajax.Offtotrueto disable ajax calls.As for the second part I’ll just set a hidden input or something…