Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Please wait massage with database connection  RSS feed

 
Biswomohan Pattanaik
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Every Body,
I have JSP page which will fetch data from database.My requirement is that I need a Loading image which will show how many percentage has been complete and the other remain.How these thing is possible.Please help me..... ..Like XP os shows the percentage copying...or remaining time...


Ex:- Suppose it will fetch 100 records.....
the it will so 76 remains..like that


with regards
Mohan....
 
ujjwal soni
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can do this using javascript quite easily,

Check out below links for references

http://rainbow.arch.scriptmania.com/scripts/preload_wait.html

This in your body:





And some kind of css in your head like:


 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTTP is not an asynchronous protocol. Once you make a request, nothing happens on the client until the server returns the response. It's all atomic, so your typical "progress" would always return 100%.

For long-running requests, we get around that by passing the backend work off to a worker thread. The web page can then be set up to poll that worker thread for percent complete. That involves setting up a timer mechanism on the client web page that resubmits periodically. This can be done with an HTML meta-tag.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!