Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9

Thread: Two Questions

  1. #1
    Regular Coder
    Join Date
    Oct 2002
    Posts
    144
    Thanks
    12
    Thanked 0 Times in 0 Posts

    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.

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,074
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Why would you want to do that? Do you want your page to be unusable?
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #3
    Regular Coder
    Join Date
    Oct 2002
    Posts
    144
    Thanks
    12
    Thanked 0 Times in 0 Posts
    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

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,074
    Thanks
    0
    Thanked 256 Times in 252 Posts
    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
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #5
    Regular Coder
    Join Date
    Oct 2002
    Posts
    144
    Thanks
    12
    Thanked 0 Times in 0 Posts
    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.

  • #6
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,074
    Thanks
    0
    Thanked 256 Times in 252 Posts
    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
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #7
    Regular Coder
    Join Date
    Oct 2002
    Posts
    144
    Thanks
    12
    Thanked 0 Times in 0 Posts
    Thanks Glenn. You have sorted my problem.

    The Dingbat.

  • #8
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,074
    Thanks
    0
    Thanked 256 Times in 252 Posts
    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
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #9
    Regular Coder
    Join Date
    Oct 2002
    Posts
    144
    Thanks
    12
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •