tags:

views:

107

answers:

2

http://plugins.jquery.com/project/conmenu

its a plugin for right click menu..... however it has no example usages or illustration or demonstration....

like where can i include additional selector options like top.document, or parent.window.document

$.conmenu({
  selector:".node",
  choices:[{
    label:"Edit",
    action:function(div){
      var nid = $(div).attr("id").substring(5);
      window.location.href = "/node/" + nid + "/edit";
    }
  }]
});
+2  A: 

I would recommend looking at some other plugins as they are better documented. For example, this plugin has better docs and examples:

http://abeautifulsite.net/2008/09/jquery-context-menu-plugin/

richleland
A: 

It is pretty simple to use, based on the documentation. Just paste in their sample, and then add in some more menu items, using their code as a template, and see what happens.

If you still have problems then you can ask here, showing the code that is causing you problems.

James Black