How can we redirect a page using AJAX on submitting a form with values and inserting them to the DB.
I am using Jquery.
Please help. :(
How can we redirect a page using AJAX on submitting a form with values and inserting them to the DB.
I am using Jquery.
Please help. :(
window.location.replace(...) this should help
If you're redirecting, why use Ajax? Can't it be done with $_POST or $_GET via pHp alone? Perhaps I'm missing the point.
The server-side header() should always (if possible) be used in preference to a js redirect.
Or even a <meta http-equiv="refresh"> should do the trick.
window.location.replace(...) this should help
Thanks For the reply.
Its working.
I am using a tabbed structure using AJAX and form validation using J query.
So after j query validation finish, am moving to next tab.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.