/jquery.working

A working status indicator, built on jQuery

Primary LanguageJavaScript

jQuery Working (Spinner) Indicator Plugin

Needs some CSS for the spinner. This should be the minimum

.working-status {
	width: 16px;
	height: 16px;
	display: inline-block;
	background: url(../images/loading.gif) no-repeat center center;
}
.working-bg {
	background: url(../images/loading.gif) no-repeat center center;
}

Example usage:

//start process. Indicate with spinner ...
$('#some_elemenet).show_working('before');
// ... code finishes, remove spinner
$('#some_elemenet).hide_working();