Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Show gif animation before page load?

 
James Fang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
What I hope to do is that after my form sent to a servlet, my javascript will open a window, then the servlet will get huge data from database and that will take some minutes. Meanwhile, i hope to should an animation in that page (to let client waiting for the result) then the result html with replace the animation after all data generated. But my problem is that the animation is halted when the window is waiting for the result page. Would anybody please tell me what is the right solution for that case.
Thank a lot for consideration.
James
 
eric sato
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi James,
For my understanding, browser does not support multipart and server push. Maybe u can tweak by using pushlet concept. Pls follow this link. it may help u, http://www.javaworld.com/javaworld/jw-03-2000/jw-03-pushlet.html.
Happy Coding
Regards,
eric sato
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic