13 Nov, 2008
jQuery Loading – Display Images or Text Until Script is Finished
Posted by: john In: javascript| php| programing
I’m just finishing up a little project to improve the search ability on a website and I want to display an image and message say “loading…” until the script finished running. Below is an easy way to do that.
First just make sure you have the latest version of jQuery.
$(document).ready(function () {
$.get(“script.php”, { keyword: “linein”},
function(data){
document.getElementById(‘text_box’).innerHTML = [...]
