Im using ajax to allow a user to delete something on my page.
What html/css tricks can i use to prevent the user from clicking on anything on the page. What im after is some sort of transparent overlay with a spinner in the center of my screen.
In ajax i know i can use beforesend and success functions to show and hide the loading.
$.ajax({
beforeSend : function (){
$('#loading').show();
}
success: function (result) {
$('#loading').hide();
}
});
}
Ive come across these spinners but they are not full overlays which prevents the user from clicking on anything and they are not centered. http://projects.lukehaas.me/css-loaders/