Il 08/07/14 07:54, Manuele Pesenti ha scritto: > Il 07/07/14 23:49, Anthony ha scritto: >> I'm not sure how easy that would be in the browser without hacking >> web2py.js, but on the server, you can check for when a deletion >> happens and then send back some JS to be executed. Not tested, but >> maybe something like: >> >> | >> defmygrid(): >> ifrequest.args(-3)=='delete': >> deleted_record =db.mytable(request.args(-1)) >> response.js =[JS code to be executed upon completion of the >> Ajaxrequest] >> grid =SQLFORM.grid(db.mytable) >> returndict(grid=grid) >> | >> >> Anthony > Thank you Antony, > it could be a solution... I'll try it :) Great it works perfectly for my needs!! Thank you again.
M. > > M. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.