Assuming the ajax() function does what you want (see 
http://web2py.com/books/default/chapter/29/11#The-ajax-function), you can 
put it in an onclick handler:

<a href="" onclick="ajax('{{=URL("controller", "function")}}', [...], 
'target'); return false;">click here</a>

Anthony

On Friday, April 20, 2012 11:31:26 AM UTC-4, Hassan Alnatour wrote:
>
> Dear ALL, 
>
> How can i use ajax in a <a href=""></a> to post some vars to a controller 
> function ??
>
>
> Best Regards,
>

Reply via email to