Spinner is automatically shown on a start of AJAX event and hidden when it finishes.
In this demo, the 'Load' and 'Reset' buttons are wired to update the content of the textbox. The update is deliberately delayed to demonstrate spinner function.
View Module Source