[jQuery] location after redirect

2009-04-04 Thread mdipierro
Hello everybody. Hope you can help me with this problems. I am doing an ajax request as follows: $.ajax({'type':'post','url':url, 'complete':function(xhr,text){} }); now $.ajax follows the redirect to the page I eventually get in text is not necessarily the original url. I canno

[jQuery] about redirect

2008-07-13 Thread mdipierro
Hello, first of all, thanks for jQuery it is fantastic. I have a question: I want to sue $.ajax but, if the server responds http 303, I do not want to follow the new location within the ajax request, I want instead to redirect the current page/document to the new location. Is there a way to do s