On Monday, April 18, 2016 at 10:11:21 AM UTC-4, Ron Chatterjee wrote:
>
> 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.
>

Hard to say without seeing the code. If you want to do a full page redirect 
via an Ajax request, be sure to set client_side=True.

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.

Reply via email to