I have found a solution

BUTTON('Testext', _onclick="ajax('%s',[],'')" % URL("testfunction")



2017-09-10 17:47 GMT+02:00 Martin Weissenboeck <[email protected]>:

> I have tried the callback parameter of A:
>
> A('Testext', callback('testfunction'))
>
>
> Works fine. Now I want the same function for a BUTTON, something like
>
> BUTTON('Testtext', callback('testfunction')
>
>
> Ok, BUTTON does not accept a callback parameter, therefore it should look
> like
>
> BUTTON('Testtext', _onclick="jQuery(....)")
>
>
> Any hints how to do it?
>
> ​Regards, Martin​
>
>

-- 
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