I have a ajax function like this
$.ajax({
url: "thankyou",
type: "POST",
data: arr,
tryCount : 0,
retryLimit : 3,
success: function(response) {
if(response = "Success"){
location.href = "/thankyou.html";
}else{console.log(response);}
},
error: function(xhr,textStatus) {
if (textStatus == 'timeout') {
this.tryCount++;
if (this.tryCount <= this.retryLimit) {
//try again
$.ajax(this);
return;
}
return;
}
}
});
There is also my Nodejs express app which sends the response correclty. It works perfectly in chrome and Im able to go to the thankyou.html page after successfull response. But my page doesn't navigate to thankyou.html in safari browser . I'm using safari 10.0.1 . The same doesn't work in my Iphone or Ipad safari browser as well. Kindly help . Thank you for the answer in advance
via karthik006
No comments:
Post a Comment