I use Jquery to make an Ajax request. The server returns Json object with value "true or false" like this:
return Json(new { success = false, JsonRequestBehavior.AllowGet });
Is there any way to refresh page after 5 seconds if the server returns true?