• 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Disabling the links in a document on holding the Shift Key

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to disable the links in a document whenever the Shift key is pressed. But once the Shift Key is released, the links have to be enabled again. This i because, i wish to avoid the Ctrl-N problem and on clicking on any link while holding the Shift key, the problem resurfaces with a new window sharing the same session getting popped up.
Also, any thing apart from <links, left arrow and right arrow key> has to be enabled. I got some script but because of that the radio button was allowing to be not selected at all.
Please provide me your inputs for this problem asap.
Solutions specific to IE will also suffice.
[ January 19, 2006: Message edited by: Bear Bibeault ]
 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well disabling all links on shift press is not a bright idea.I can think of two solutions

1) Hide mouse pointer on shift press.I think it is possible in javascript.

2) Second, try to write all hyperlinks using javascript i.e. fwd all request through javascript.Javascript doesn't allow "Shift+Click" to open a new window so this could also be a solution to your problem.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can not hide the mouse!

This will not work if the person disables JavaScript, have a browser that does not allow right click to be disabled, and many others.

If you are having problems with multile sessions or such, then you really need to attack this at the server level.

Eric
 
Sheriff
Posts: 67537
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
Point #1: Eric is right -- applying band-aids will get you nowhere. Solve the real problem.

Point #2: Please read this to see why putting URGENT in your titles and posts is not a good idea. I have removed it from your subject title for you.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I also need answer to this problem. Does anyone know how to disable the new browser that opens when one hits Shift and click on the link.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic