Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jQuery loading image

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

Is this loading image / spinner available only for jQuery ajax requests? I have a normal jsp page rendered through calling a struts action. This rendered jsp page is built using jQuery UI tabs and since this contains a lot of content, I want the page to be shown only when it is completely ready. Right now when I call the page, I first see the jQuery UI tabs without any image and then it suddenly flips to the original content will all the images loaded. Any idea on how I could use the spinner image till the page is completely ready for rendering?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65227
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe Harry wrote:Is this loading image / spinner available only for jQuery ajax requests?

What is "this"?
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok. Here is what I want. I request a jsp page and I want to show the page only after all the response has been written to the browser. Below is a screenshot of what happens. Screen 1 appears for a second and then the complete screen gets loaded. I do not want that to happen. Instead of screen 1, a spinner showing "Loading..." should be shown and then once the complete DOM is ready, the page should be shown. Ideas?
Screenshot_2.jpg
[Thumbnail for Screenshot_2.jpg]
Screenshot_1.jpg
[Thumbnail for Screenshot_1.jpg]
Somehow need to avoid this
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic