Thank-you Dave. The fog is lifting now...
On Jul 23, 7:11 pm, Dave Methvin <
dave.meth...@...> wrote:
> > My problem is figuring out how I correlate the success or error
> > callbacks with the table row from which the event originated
>
> The click handler gets an event object with an event.target that
> should tell you what element was clicked. Inside the click handler
> you'll do the ajax call which will have the success function nested
> inside it. You can just use event.target inside the success function
> to get to the element that was originally clicked to fire the ajax
> that just successfully finished. At least I think that should work...
> You should could even use event delegation and set a single click
> handler for the whole table and just do a little data gathering to
> figure out what action to take.