On Friday, November 7, 2014 4:44:51 PM UTC-5, Niphlod wrote:
>
> uhm, I'm really missing the server-side code to handle such a form... 
> could you post an example with a "real-life" implementation ?
>

It was suggested that this should be accomplished in the form's action 
(presumably by including some Javascript that transfers the button name to 
a hidden field and then reading the value of that hidden field upon 
submission). Assuming we want to automate that process, we'd have to add 
some code in gluon.html.FORM. Even in that case, we'd still need some JS, 
so probably best to go with a pure JS solution, such as the one Denes has 
proposed.

Anthony

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to