Welcome Guest, Not a member yet? Register   Sign In
jQuery Context Menu Issue
#9

[eluser]xwero[/eluser]
i just tested it and with your original code i got an error in firebug (this.test is not a function, firebug rules Smile )
i changed it to
Code:
$('span').bind('contextmenu',function(e){
   $(this).text($(this).text() + '.');
   return false;
});
And i only could add a one dot per right click. The same happened replacing text with html.
Code:
$('span').bind('contextmenu',function(e){
   $(this).replaceWith($(this).text() + '.');
   return false;
});
Seems to work only once, the additional right clicks show the default context menu.

Hope this gets you somewhere


Messages In This Thread
jQuery Context Menu Issue - by El Forum - 02-27-2008, 05:37 PM
jQuery Context Menu Issue - by El Forum - 02-27-2008, 05:39 PM
jQuery Context Menu Issue - by El Forum - 02-27-2008, 07:28 PM
jQuery Context Menu Issue - by El Forum - 02-27-2008, 08:20 PM
jQuery Context Menu Issue - by El Forum - 02-28-2008, 02:37 AM
jQuery Context Menu Issue - by El Forum - 02-28-2008, 02:48 AM
jQuery Context Menu Issue - by El Forum - 02-28-2008, 02:53 AM
jQuery Context Menu Issue - by El Forum - 02-28-2008, 02:59 AM
jQuery Context Menu Issue - by El Forum - 02-28-2008, 03:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB