A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to show loading image while moving between pages?
Joined: Jul 28, 2011
Oct 31, 2011 01:26:28
i have a .jsp page and when i click on another .jsp page it takes time to load, so during that loading i want to display some
. how do i do that?
i tried this one :
but its not working
Author and ninkuma
Joined: Jan 10, 2002
Oct 31, 2011 08:17:59
You can't. While the browser is in transition, it does't run any anything from any page including animations.
One way would be to submit the new request using Ajax so that script and animations can run on the "parent: page. When the request returns you can remove the animation or move to a new page,
Asking smart questions
Books by Bear
It is sorta covered in the
JavaRanch Style Guide
subject: How to show loading image while moving between pages?
Can I use requestDispatcher.forward while using AJAX for Loading image
Loading message display in jsp
Showing image from a JAR on a JSP page
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015