12 May, 2010
jQuery AJAX Loading – Display Images or Text Until Script is Finished (Part 2)
Posted by: john In: jquery|php|programing|tutorial
This is a more practical way to display an image or text while an AJAX request is loading. DEMO | DOWNLOAD FILES What we’re basically doing is forcing a DIV to have a starting image and then replacing it with the text return from the AJAX request. function loadingAjax(div_id) { $(“#”+div_id).html(‘ saving…’); $.ajax({ type: “POST”, [...]
