I am using .net MVC 3. I have an AJAX call to save questionaire answers, and I need some image indicator similar to loading icon to show users it was saved.
<input id="SaveAccount"
type="button"
onclick="saveQuestioniare();"
value=""
alt="save account" title="save account" />
My AJAX call:
function saveQuestioniare() {
var formData = $("#SignupForm").serializeArray();
$.ajax({
url: '/Question/SaveQuestionaire?id=@ViewData["reviewId"]',
type: 'POST',
cache: false,
dataType: 'json',
data: formData,
error: function (jqXHR, textStatus, errorThrown) {
alert(errorThrown);
},
success: function (json) {
alert("Saved");
}
});
}
do not use additional plugins you can do it easly by css and js 10 line of code instead of 300/400 and more
first style your image to be where you want to be, for example:
then in js do