>
> I don't understand why HTTP(200,Location=URL(...)) isn't redirecting to 
> URL(...)?


You need to issue a 303 to get the browser to redirect to the URL in the 
"Location" header. But if it is an ajax request, that will only redirect 
the ajax request itself -- it won't reload the whole page. If you want an 
ajax call to result in the whole page reloading, you'll have to do that via 
Javascript at the completion of the ajax call. If you are using the ajax() 
function to make the ajax call, you could do something like this:

In the view:

ajax("{{=URL('default', 'myfunc')}}", [], ":eval")

In default.py:

def myfunc():
    return 'window.location = "%s";' % URL('default', 'otherfunc')

Anthony

Reply via email to