Hi, can i ask about my code is it okay to put inside the success with window.location
like this
$.ajax{(
type: 'post',
url: 'somelink.php',
success: function(db){
window.location.href="toanotherpage.php";
}
});
Hi, can i ask about my code is it okay to put inside the success with window.location
like this
$.ajax{(
type: 'post',
url: 'somelink.php',
success: function(db){
window.location.href="toanotherpage.php";
}
});
Hi jemz,
I don’t see any problem in that…just check that it gets redirected to the php page or not, else give the entire path i mean with the domain name first and then the page name [window.location.href=“http://www.yourdomainname.com/toanotherpage.php”].
yes, i tried it and it’s working.