File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to display a load image while data is loaded

 
chain singh
Ranch Hand
Posts: 117
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

i am using ajax to get data from database and display it in my jsp page.
while ajax is doing its work i want to display a waiting symbol.
how i can do this

thanks in advance
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17616
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably the easiest way is to include the "wait" indicator as a hidden element on the page, make the pre-submit JavaScript alter it from hidden to visible, and then have the post-AJAX code hide it again.
 
chain singh
Ranch Hand
Posts: 117
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for solution

how to do it i want to a waiting symbol on whole page as front page of main page
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know what you mean by that, but like any other display effect in an HTML page, you'd use CSS.
 
chain singh
Ranch Hand
Posts: 117
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pardon me for confusion


i want to make page blur when data is loading and a very big waiting symbol is running in center of that page and after loading complete that page became focused
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create div layer that covers the entire page with a high z-index and set the opacity low perhaps?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic