Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:28
Editing the bolt-on modules?
Poster: Shap5202
Dated: Saturday October 15 2005 - 1:04:45 BST
Hello all,
I used the contextmenu.js file to implement a right-click menu for our app, but it had some undesired functionality. After clicking something (from the context menu or elsewhere), I wanted to disable the context-menu. And I did that fine, but I didn't know if I was allowed to do this (I changed an if-else block to return false;).
I also wanted to use the keypress.js module to navigate the menus. However we already have some input trapping functionality in and when I dropped the include in, it overrode our own input capturing. I could get around this but just combining some of the methods together, but I don't know if that is frowned upon.
Poster: Ruth
Dated: Wednesday November 2 2005 - 21:13:28 GMT
Hi,
I think you need to contact Milonic if you are modifying the code somehow. The code is proprietary. I believe there is a link in the 'normal' context menu to disable it. I would think you could turn that link into a function in the menu_data.js file so that when anything is clicked the menu is disabled. Also, there is a demo for a different context menu, being able to create different ones. Dynamic Context Right Click Menu Demo
Ruth
Poster: Shap5202
Dated: Wednesday November 2 2005 - 22:02:56 GMT
What i ended up doing was including the keypress.js module BEFORE our own key trapping code. As I found out, 'last man standing' wins in javascript so to speak. So i just made our custom code call the milonic method and it worked w/o having to change any of their stuff.
Forgot I started this thread to 'close' it