This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Please wait ..while accessing data, How can I do that Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Please wait ..while accessing data, How can I do that" Watch "Please wait ..while accessing data, How can I do that" New topic
Author

Please wait ..while accessing data, How can I do that

Harish Maridi
Ranch Hand

Joined: May 20, 2008
Posts: 60
Hi,

I am implementing AJAX on my page, while retrieving data (about 3000 records), it is taking some time. In this time I want to display an image with message "please wait ..while accessing data". How can I dothat using javascript or any other way, Please explain me.

Thanks in advance
-mark
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61314
    
  66

Do you just want that to appear somewhere on the page?

It's a simple matter to create a hidden element and to show it while the Ajax request is processing. Some more details on what you want are necessary.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61314
    
  66

P.S. The basics of show/hide is to change the display style property to "none" for hidden, and one of "block" or "inline" (as appropriate) for shown.
[ July 18, 2008: Message edited by: Bear Bibeault ]
 
GeeCON Prague 2014
 
subject: Please wait ..while accessing data, How can I do that