My aim is that, when a user click on a node, then a popup menu is displayed on showing some options.
By using setCallbackinfo i have assigned a method to node elements.
And in that method i am showing a popup menu.
here is the code for that method…
var nodeId = arguments[0];
//Create menu items
var menu = new Array(
plugins.popupmenu.createMenuItem(‘Create Floder’,create_folder, ‘media:///create_folder.png’),
plugins.popupmenu.createMenuItem(‘Upload File’,upload_file, ‘media:///upload_file.png’)
)
var elem = elements.bean_584;
if (elem != null)
{
plugins.popupmenu.showPopupMenu(nodeId, menu);
}
The popup menu is displayed, but it is displaying on the bottom of DBTree element.
But, accoring to me it should display near to the selected node.
The popup menu shows “on top” of an element, not a single tree node. So your problem is that the tree element is pretty big. As far as I see you have no way of showing the popup menu on top of a certain node.
It asks for the registration, but when i have filled up all the details it not showing any error messages not registering me.
what is the problem with me?