[jQuery] Re: Loading help with contextmenu plugin.

2008-06-03 Thread Mauricio Farah
Thanks both of you, it worked just fine :). Mauricio. On May 28, 2:52 pm, Ken Gregg [EMAIL PROTECTED] wrote: Use livequery. I attach it to each row in a flexigrid ike this: $('tbody tr').livequery(function() { $(this).contextMenu('ctxMenu', { bindings: { 'map': function(t) {

[jQuery] Re: Loading help with contextmenu plugin.

2008-05-28 Thread Eric Ongerth
Mauricio, This sounds like a good place to use the livequery plugin: http://docs.jquery.com/Plugins/livequery Its purpose: keeping events properly bound to elements that satisfy a selector even when the elements are loaded later, or loaded dynamically. Good luck. On May 27, 5:47 pm, Mauricio

[jQuery] Re: Loading help with contextmenu plugin.

2008-05-28 Thread Ken Gregg
Use livequery. I attach it to each row in a flexigrid ike this: $('tbody tr').livequery(function() { $(this).contextMenu('ctxMenu', { bindings: { 'map': function(t) { mlsnumber = t.id.split(_); href='/map_update.php?mlsnumber=' + mlsnumber[1]; $.openWin(href,