Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Is there any way to handle this timelimit for Safari browser for AJAX call?

Bharat LeelBharat Leel Member Posts: 5

We have used ajax call with "async: false" through out our web application, now in Safari browser(in Windows and Mac OS both) if response gets delayed more than 5 seconds Safari browser throws dom timeout exeption.

$.ajax({
    type: "POST",
    contentType: "application/json; charset=utf-8",
    url: "Web method url",
    data: jsonData,
    async: false,
    success: function (data) {
    },
    error: function (data) {
    },
    complete: function () {

    }
});
Tagged:

Answers

  • Bharat LeelBharat Leel Member Posts: 5

    The straight solution we found through different blogs is to set "async: true" or implement setTimeout() logic, that will fix the issue we have already tested that.

    But we are looking for another solution that is there any way like by any property in configuration or AJAX call or any browser setting we can increase JavaScript Execution time for Safari browser.

Sign In or Register to comment.