On that note Anthony, why doesn't this button works?
<button class="btn btn-primary pull-right" onclick="ajax('{{=URL('cart',
args = 22)}}', [], 'target')">Shopping Cart, ${{=total}}</button>
onclick I can apply a jquery or ajax call. The ajax call seems to be inline
with what you specified but doesn't redirect.
On Monday, April 18, 2016 at 8:31:42 AM UTC-4, Anthony wrote:
>
> On Monday, April 18, 2016 at 4:46:14 AM UTC-4, Junior Phanter wrote:
>>
>> ajax('{{=URL('dta')}}','[ ]','target')
>>
>
> Almost, but the brackets should not be in quotes -- should be:
>
> ajax('{{=URL('dta')}}', [], 'target');
>
> Anthony
>
--
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.