Cool! I just tested it and I will use. I just recommend replace .html() with .append() to prevent the deletion of existing itens in target.
On Mon, Aug 8, 2011 at 8:49 AM, Massimo Di Pierro < [email protected]> wrote: > Example: > > <div id="mytarget">...</div> > > <div id="test"> > {{A('click > me',callback=URL('mycallback'),target="mytarget",delete="div#test")}} > </div> > > when you click on mycallback the div#test disappears and the str > returned by the ajax mycallback is displayed in div#mytarget. > > Useful for adding buttons to tables, for example: > > db.table.id.represent = lambda id: {A('delete > me',callback=URL('delete_record',args=id),delete="tr") -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ] [ Consultoria em desenvolvimento web: http://www.blouweb.com ]

