Globally add spinners to AJAX calls

Is there any way I can globally add some JS code to all my AJAX calls
to implement user feedback - indicating that his action is being
processed?

Something like automatically disabling the submit button and showing a
spinner would be great.

Thanks,
Amir

Thanks, great article!

Amir

On Jul 8, 5:45 am, helzer [email protected] wrote:

Is there any way I can globally add some JS code to all my AJAX calls
to implement user feedback - indicating that his action is being
processed?

Something like automatically disabling the submit button and showing a
spinner would be great.

Thanks,
Amir