Hello,

the ajax function  example in the web2py book

ajax('{{=URL('new_post')}}',['your_message'], 'target');

sends the value of the field *your_message* to the controller function

I dont want to send the value of a field but a button onclick action

My webpage can have 2,4 10 or 20 buttons. It depends . And each time i press
a button i need to call the ajax function to process that button

can the ajax function process a button instead of a text field?


Thank you

Reply via email to