By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
461,985 Members | 472 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 461,985 IT Pros & Developers. It's quick & easy.

Loading Image untill ajax page is load

P: 134

I hav a page in which datas are displayed intially from the database.

And using a link i m retriving datas from another page using ajax.,

it takes time and user might think tht nothing happens.,

so can i show a loading image while the page gets load.,

any suggestions or scripts available.,

Mar 28 '08 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 1,654
Inside the onreadystatechange function, when xmlHttp.readyState==1, display the image and when xmlHttp.readyState==4, hide the image.
Mar 28 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.