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

change cursor to hourglass when navigating via link  RSS feed

 
Lakshmi Ramachandran
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
I am working in a Web Application project wich uses JSPs and servlets for GUI. It has varied types of pages with navigation bar on left hand side and the page details on the right hand side of the screen. The navigation bar has links to various pages. Also each page details part has tables with hyperlinks.
When a user clicks on a link, the request is passed from JSP to servlet and processing is done on the server end and the forwarded back to the JSP.
My requirement is to display the 'Hourglass' cursor on the browser when processing is being done and then revert back to default cursor - 'Arrow'.
Kindly help me out! Its very urgent.
Thanks in advance.
Regards,
Lakshmi
 
Chris Baron
Ranch Hand
Posts: 1061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Lakshmi,
that's a javascript/css task:
onClick="document.getElementsByTagName('body')[0].style.cursor='wait';this.style.cursor='wait'"
...sets the cursor of the still displayed page to wait. If the response comes back the cursor is set arrow ( default ) automatically.
cb
[ May 14, 2003: Message edited by: Christian Baron ]
 
Lakshmi Ramachandran
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, It really helped me out!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!