Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 image . 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
I agree. Here's the link:
subject: How to show loading image while moving between pages?
Loading message display in jsp
Showing image from a JAR on a JSP page
Can I use requestDispatcher.forward while using AJAX for Loading image
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014