Hi,
I've created a right click context menu and I'm wondering if anyone knows how to add an onclick event to the menu items (I'm trying to show and hide content with an onclick callin a seperate show/hide script).
I think the code below is the right place to play with the functionality of making the links useful, rather than just displaying an alert message.
the whole code is from:
many thanks
Ian
I've created a right click context menu and I'm wondering if anyone knows how to add an onclick event to the menu items (I'm trying to show and hide content with an onclick callin a seperate show/hide script).
I think the code below is the right place to play with the functionality of making the links useful, rather than just displaying an alert message.
Code:
var OnClick = function(Sender, EventArgs)
{
switch(EventArgs.CommandName)
{
case 'Release':
alert('Text: ' + EventArgs.Text);
break;
case 'Save':
alert('Text: ' + EventArgs.Text);
break;
case 'Update':
alert('Text: ' + EventArgs.Text);
break;
case 'Cancel':
alert('Text: ' + EventArgs.Text);
break;
}
the whole code is from:
many thanks
Ian