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
pardon me, i'm not sure what do you mean with _javascript_ trigger. please
explain more about it. btw, web2py have ondelete (executed on HTML Form
Side) and before_delete callback (executed on DAL side).
ref:
http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM-grid
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:
def mygrid():
if request.args(-3) == 'delete':
deleted_record =
Il 07/07/14 22:43, 黄祥 ha scritto:
pardon me, i'm not sure what do you mean with _javascript_ trigger.
please explain more about it. btw, web2py have ondelete (executed on
HTML Form Side) and before_delete callback (executed on DAL side).
Thank you 黄祥 :)
I mean that I need to refresh some part
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():
5 matches
Mail list logo