just a little change to make it work:
<button onclick="window.location = ' {{=URL
(r=request,f='add_records')}} ' ">Crea attività </button>
On 24 Mar, 13:05, Michal Jursa <[email protected]> wrote:
> Yes, coz it cannot be called like this. The problem is not in web2py but
> in your page. You have to use proper javascript call. So the result
> should look like:
>
> <button onclick="window.location = {{=URL(r=request,
> f='add_records')}}">Crea attività </button>
>
> Then i think this will work as you expected.
>
> Michal alias Plysak :)
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---