I need a 'loading' icon that displays during an Ajax call. I'm trying this: How to show loading spinner in jQuery?
It fails to work. I am not making Ajax calls directly in my code, this is a large app with lots of abstraction and wrappers, so typically I am calling functions that call functions that call $.ajax(), and that call already has beforeSend and success attributes set -- that function is used dozens of times throughout our code and I prefer not to modify it.
Is ajaxSetup() not designed to work in such a situation? If so, then under what circumstances is it supposed to work? Thanks.