Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-06-2004, 10:44 AM   PM User | #1
Dingbat
Regular Coder

 
Join Date: Oct 2002
Posts: 137
Thanks: 10
Thanked 0 Times in 0 Posts
Dingbat is an unknown quantity at this point
Two Questions

Hi Guys,

Two questions.

1. Is there any way to disable the "Tab Key"?

2. Is there any way to disable the mouse?

The Dingbat.
Dingbat is offline   Reply With Quote
Old 01-06-2004, 11:01 AM   PM User | #2
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
Why would you want to do that? Do you want your page to be unusable?
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Old 01-06-2004, 11:43 AM   PM User | #3
Dingbat
Regular Coder

 
Join Date: Oct 2002
Posts: 137
Thanks: 10
Thanked 0 Times in 0 Posts
Dingbat is an unknown quantity at this point
Hi Glenn,

If the TAB key was disabled this would leave all the other keys active. I hope. At the same time if the mouse was disabled on this page I assume that it would become active when other pages are loaded.

The reason why I am looking to do this is force the user to press the enter key. This is the first page of an intranet.

Can you help.

Regards,

The Dingbat
Dingbat is offline   Reply With Quote
Old 01-06-2004, 12:19 PM   PM User | #4
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
Sorry for asking too much but why do you want to force the user to press the Enter key? Is it a workaround for the *real* problem? If you explain what you really want, maybe there's a better solution to it.
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Old 01-06-2004, 12:32 PM   PM User | #5
Dingbat
Regular Coder

 
Join Date: Oct 2002
Posts: 137
Thanks: 10
Thanked 0 Times in 0 Posts
Dingbat is an unknown quantity at this point
Hi Glenn,

Yes this is a work around. I have at the moment a parent window that produces a popup and at the same time tries to close the parent. As you know this will produce the "Nag" that the window is being closed. As you also know it gives the option "Yes" or "No" If the "No button is clicked or the tab key used with enter the window will remain open. I am trying to force the user to press enter to close the window leaving the child window open. The child window is chromless and the right mouse button is diabled.

I hope that I have made sence of that.

Regards,

The Dingbat.
Dingbat is offline   Reply With Quote
Old 01-06-2004, 12:52 PM   PM User | #6
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
Any script won't be executed while that Yes/No dialog (or even javascript alert, prompt and confirm) is active because it requires user intervention.

Have you seen this?
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Old 01-06-2004, 01:10 PM   PM User | #7
Dingbat
Regular Coder

 
Join Date: Oct 2002
Posts: 137
Thanks: 10
Thanked 0 Times in 0 Posts
Dingbat is an unknown quantity at this point
Thanks Glenn. You have sorted my problem.

The Dingbat.
Dingbat is offline   Reply With Quote
Old 01-06-2004, 01:16 PM   PM User | #8
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
But take note that the solution presented by the author of that article is a browser hack. So you can't rely on it working in the future.
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Old 01-08-2004, 02:39 PM   PM User | #9
Dingbat
Regular Coder

 
Join Date: Oct 2002
Posts: 137
Thanks: 10
Thanked 0 Times in 0 Posts
Dingbat is an unknown quantity at this point
Glenn,

Thanks for pointing me in the right diorection. It sorted my problem to a certain degree but for you info that code will work but only on the second access to the page. After a cold boot the "Nag" will appear.

Still worth the effort for an intranet.

Regards,

The Dingbat.
Dingbat is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:52 PM.


Advertisement
Log in to turn off these ads.