Jquery success with window location

Hi, can i ask about my code is it okay to put inside the success with window.location

like this

   type: 'post',
   url: 'somelink.php',
   success: function(db){


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. :slight_smile: