On Monday, August 8, 2011 7:49:47 AM UTC-4, Massimo Di Pierro wrote:
>
> db.table.id.represent = lambda id: {A('delete
> me',callback=URL('delete_record',args=id),delete="tr")
>
FYI, this uses jQuery(this).closest(delete).remove(), which finds the
closest DOM object matching the value of 'delete' -- that's how it knows to
only delete the current table row when delete="tr" rather than deleting all
table rows. Thought it was worth clarifying, as I found that confusing when
first looking at this example.
Anthony