Which of the following is the correct way to manage a redirect request after a jQuery Ajax call?
Answer
Correct Answer: $.ajax( error: function (jqXHR, timeout, message) { var contentType = jqXHR.getResponseHeader("Content-Type"); if (jqXHR.status === 200 && contentType.toLowerCase().indexOf("text/html") >= 0) { window.location.reload(); } });
Explanation:
Note: This Question is unanswered, help us to find answer for this one