Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
  1. #1
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Ok guys, I really need some help on this one. I am writing a thin-client Intranet application that will be replacing the default right click menu with a custom one. I don't need the default right-click menu because the application won't use them.

    The only scripts I've found to date are for right click disabling, which replace the menu with an annoying "Don't steal my crap" message. That's not what I need. I need a menu to pop up. Just a different one

    I tried replacing the "window.alert" in one of the "no right click" scripts I found with a div popup, but the damn menu still appeared. What I was wondering was... is there (short of firing a window event) a way of killing the popup on a right click?

    Thanks !!!!

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Does simply catching the rightclick event nuke the menu?
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Unfortunately no

  5. #4
    Senior Member skrlin's Avatar
    Join Date
    Apr 2003
    Location
    Illinois
    Posts
    562
    Member #
    1063
    Here transio, maybe you can build on something like this:

    www.skrlin.com/Testing/new/rgt.htm
    - Brian

  6. #5
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    skrlin, that's some sweetness right there!!!

    Thanks a bunch, bud

  7. #6
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,657
    Member #
    1234
    Liked
    139 times
    One warning about that: You can right click, then move your mouse away, so the menu will stay there.
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com

  8. #7
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    How about:
    Code:
    onContextMenu = "return false"
    ?
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  9. #8
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    all i needed was the "oncontextmenu" event. I'm working with it as we speak... I'll post what I have when I'm done ;-)

    I think you guys will dig it :-P

  10. #9
    Senior Member skrlin's Avatar
    Join Date
    Apr 2003
    Location
    Illinois
    Posts
    562
    Member #
    1063
    One caution/warning:

    the onContextMenu event doesn't work for Netscape/Mozilla (tested in NS7 and Moz 1.4a)

    So if it makes a big difference, you may have to figure out a work-around. If you do, let me know I'll see if I can come up with something.

    Wired, try right clicking on this page and moving the mouse away, the menu sticks around until you right/left-click somewhere else.
    - Brian

  11. #10
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    It works the way I'm doing it ;-)

    I'll post what I'm making when I've got it working a little better


Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:54 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com