I have a JQUERY
function that uses AJAX
via a PHP
page, when the AJAX is running I have a loading.gif show for the user. When the AJAX
returns the json data that was requested all is fine. What I would like to do would be to make any user input null while this is happening.
What would be the best way to go about this?
EDIT:
I ended up using...
$('#loadingDiv')
.hide() // hide it initially
.ajaxStart(function() {
$(this).show();
})
.ajaxStop(function() {
$(this).hide();
})
;
From the post How to show loading spinner in jQuery?
Thanks for the suggestions!