views:

1199

answers:

2

Does anybody knows how to redirect parent page from an ajax call. I made an ajax call to the server and from controller function that handles the call I whant to go to another page. Usually this function updates an element from current page , but in some cases I want to redirect browser to another page...

A: 

Have you tried to simply send a "Location" header in the AJAX response?

divideandconquer.se
+2  A: 

If you want to redirect the page loaded in the browser, you probably need to send some sort of message back in the AJAX call that you can then intercept in javascript and then change the browser location

Tom Haigh