• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hourglass while the jsp page loads

 
Raju Vemula
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm using frames in my jsp. the left side frame consists of navigational links and the right side frame is the target frame. when a user clicks on any of the links in the left side frame, i wanted an hourglass to be shown, in the right side frame, as cursor until the page gets fully loaded inside the right side frame. somebody please help get the solution for this..
thanX in advance,
raju
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I personally do not think it can be done (since during load, there's nothing to attach a CSS attribute to), but in any case, it's not a JSP question. So off to the HTML/Javascript forum.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not 100% this would work, but

You would call this script when something was clicked.
Then you would call the script again onload of the page that is loading.
Eric
 
Raju Vemula
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eric,
I used the code that you have given as directed, and as you said it doesn't work 100%. what's happening is, when i click on any link in my left frame the hourglass appears until the new page is loaded in my right frame, but it is loaded the cursor in the right frame got changed back to auto, but the cursor in the left frame still shows the hourglass only. pls let me know if you have any other idea, how to go about this one?
thanX for your code, anyhow.
raju
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you might be able to solve the problem by adding
<body style="cursor:wait" onload="parent.FrameName.changeCursor()">
The FrameName is where the script is kept
Not 100% sure!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic