Reload the page after ajax success Reload the page after ajax success ajax ajax

Reload the page after ajax success


BrixenDK is right.

.ajaxStop() callback executed when all ajax call completed. This is a best place to put your handler.

$(document).ajaxStop(function(){    window.location.reload();});


You use the ajaxStop to execute code when the ajax are completed:

$(document).ajaxStop(function(){  setTimeout("window.location = 'otherpage.html'",100);});


use this Reload page

success: function(data){   if(data.success == true){ // if true (1)      setTimeout(function(){// wait for 5 secs(2)           location.reload(); // then reload the page.(3)      }, 5000);    }}