jQuery UI Widgets Forums Navigation Menu, Context Menu Menu works for whole page and not just panel

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • hesaigo999ca

    I have used the example at http://plugins.jquery.com/project/jQuery-Menu-and-Context-Menu and can not get the menu to only work when a right click happens on the pane, it seems to happen all over the page….. so I modified the function called during the right click event button to do an alert that says ‘HI’ and it works as it is supposed to inside the pane, but as soon as I move past the panel it goes back to doing the standard ADD,MODIFY,DELETE context menu (original div content)…so I know the page is still triggering the context menu, although I do not want it too and the panel works as supposed to….

    could i get a hand to figure out if this is inside the js files or maybe i can just override it with some code….

    thanks in advance guys…

    Peter Stoev

    Hi hesaigo999ca,

    You can take a look at the ‘Context Menu’ demo in our Example application – http://www.jqwidgets.com/jquery-widgets-demo/. The demo actually demonstrates how to make our context menu to work only when the user right-clicks over a panel.

    In addition, if you want to disable the standard document’s context menu, use this:

      $(document).bind('contextmenu', function (e) {
    return false;

    Hope this helps you.

    Best Regards,
    Peter Stoev

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.