Forum Moderators: open

Message Too Old, No Replies

Xajax + ie

window.href won't redirect

         

caesar2k

11:45 pm on Apr 20, 2008 (gmt 0)

10+ Year Member



Hello, I'm building a website that needs to be redirected after data has been inserted into my database, and I'm using a framework called XAJAX for doing so. In Firefox, when I finish the 'insertation', I send a javascript answer for window.location = "http://new page". The problem is that, the page won't redirect in IE 7, but will redirect fine in Firefox. What could the problem be? Remember that I'm using AJAX, and I can't use header('Location :')

numbshot

7:54 am on May 2, 2008 (gmt 0)

10+ Year Member



Hola,

You can redirect through your xajax function with the following method:

$objResponse->redirect("http://www.google.com");

If your are using an older version of ajax i think the method name is addReridect

Good luck ;)