Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).
 
Sheriff
Posts: 67637
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
When people don’t understand what you are doing they call you crazy. But this tiny ad just doesn't care:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic