On Saturday, May 7, 2011 12:48:41 PM UTC-4, Resa wrote:
>
> success: function() {
> {{redirect(URL(f="mathgen"))}} }
The above is a Javascript function that will be called on the client side,
so the web2py template code has to evaluate to valid Javascript for it to
work. Instead, you're trying to call a server-side web2py/Python function
(redirect) from within your Javascript, which won't work. If you want the
redirect to happen via JS, you'll have to write JS code to do it (though you
can still use the web2py URL function to generate the URL)..
Anthony