Page 1 of 1

redirection

Posted: Sun Apr 18, 2010 11:21 pm
by m2babaey
Hi
I submit a form with Ajax
On successful insert, I used meta refresh in the <div> I displayed successful message to redirect user

Code: Select all

<meta http-equiv="refresh" content="0; url=index.php">
But it doesn't work
I wanted to use javascript window.location, but I have to place it on head or show a button with "onclick"

But I want the user to be redirected automatically and keep ajax submission of my form
Any idea?
Thanks

Re: redirection

Posted: Tue Apr 20, 2010 1:14 pm
by kaszu
Why use AJAX if you are reloading a page?
When you say AJAX you mean "asynchronous request to server", right?