File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Hourglass while the jsp page loads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Hourglass while the jsp page loads" Watch "Hourglass while the jsp page loads" New topic
Author

Hourglass while the jsp page loads

Raju Vemula
Greenhorn

Joined: Apr 29, 2004
Posts: 6
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

Joined: Jan 10, 2002
Posts: 61766
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Apr 29, 2004
Posts: 6
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hourglass while the jsp page loads