PDA

View Full Version : ContextMenu Rendering



yogeshmsharma
12 Feb 2010, 3:13 AM
Any body know what is problem here ?

It display more than two context menu after successive right click

18721






function event_context_menu(node, event){

var contextMenu = new Ext.menu.Menu({
id : "_context_menu",
items:[
{
id:'add_node',text : 'Add Node' ,
handler: function(){
alert ('I am in ');
}
}
]
});

yogeshmsharma
12 Feb 2010, 3:15 AM
With single html file it works ok but not with what I have coded on web server

yogeshmsharma
22 Feb 2010, 7:59 AM
if var contextMenu is defined globally it work fine.

but I don't want to define it globally.