<button onclick="$.ajax("{{=URL(r=request,f='callback')}}"):'>Click
Me</button>

If the callback action takes long time you should consider a
backrgound process and database-based event queue.

Massimo

On Mar 24, 3:17 am, Marco Prosperi <marcoprosperi...@gmail.com> wrote:
> hi all,
> I would like to put a button in one of my pages so that when the users
> clicks it, a computation on the database get started. I don't know the
> syntax I have to use. Probably something like:
>
> <button onclick=!!what_am_I_supposed_to_put_here?!!>click me</button>
>
> any hint? Or maybe there is a better approach?
>
> Marco
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to