jQuery Overlay Plugin - Loading Spinner Example

When start to send an ajax request, open the overlay and spin.

When the request is received, close the overlay and spin.