redirection
Posted: Sun Apr 18, 2010 11:21 pm
Hi
I submit a form with Ajax
On successful insert, I used meta refresh in the <div> I displayed successful message to redirect user
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
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">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