[jQuery] Re: Pass objects to Ajax Success

2007-05-03 Thread Jeff
you are the man! On May 3, 3:25 pm, "Jonathan Sharp" <[EMAIL PROTECTED]> wrote: > Hi Jeff, > > You just need to use a closure. Outside your ajax call do $t = $(this); and > then you can reference $t inside of your anonymous function. See below... > > Cheers, > -js > > $(document).ready(function()

[jQuery] Re: Pass objects to Ajax Success

2007-05-03 Thread Jonathan Sharp
Hi Jeff, You just need to use a closure. Outside your ajax call do $t = $(this); and then you can reference $t inside of your anonymous function. See below... Cheers, -js $(document).ready(function() { $("table > tbody > tr").hover(function(){$ (this).css("backgroundColor", "#de7121")}, f

[jQuery] Re: Pass objects to Ajax Success

2007-05-03 Thread Jeff
I should add that calling the row by name is not an option as the rows do not have unique ids On May 3, 2:50 pm, Jeff <[EMAIL PROTECTED]> wrote: > I have run into a problem. I am attachking a click() event to every > row of an inventory table. When the user clicks on the row, it > fetches detai