This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Clicking a link while cursor is in wait (hour glass) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Clicking a link while cursor is in wait (hour glass)" Watch "Clicking a link while cursor is in wait (hour glass)" New topic
Author

Clicking a link while cursor is in wait (hour glass)

B Bhutta
Greenhorn

Joined: Jun 28, 2002
Posts: 14
Hi,
I do a post on my html page using a javascript and before submitting the form I change the style of cursor to wait (i.e. changing the shape of mouse to a an hourglass) . However, even in wait condition (hourglss) one can still click the links! Becuase in hourglass condition, one can move the cursor to any link and it changes its shape. Is there any way that we can avoid and user can't click on link once they submitted the form.
I dont want to disable the link. Any ideas!!! thanks for your help
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
ways would be to disable it, hide it using css, place a layer on top of it(worst idea), or have a variable catch multiple clicks(best idea).
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60041
    
  65

Simply changing the cursor state has no semantic meaning.
What exactly are you trying to accomplish? If you just don't want users clicking anything after they click a submit button for a long operation, your best bet is to take down the whole page before submitting your long request. If that's not suitable, Eric had some great suggestions.
hth,
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Don't get me started about those stupid light bulbs.
 
subject: Clicking a link while cursor is in wait (hour glass)
 
Similar Threads
Change Image Of Mouse Cursor
Animating independent objects?
how to display an houglass cursor?
How to do Hourglass cursor in Javascript?
Hourglass while the jsp page loads