Disable ajax callback

Develop a mobile app using jquery mobile, the following code makes an ajax call:

$.ajax({
timeout:ajaxTimeout,
url: url,
dataType: dataType,
data: {
    ···
},
success: function (response) { 
    ···
},
error: function(e, message){
    ···
},
complete: function(object, message){
    ···
}
});

      

I get a timeout from this call and automatically retry. How do I disable this callback? I am trying to use some parameters like retryCount: 0, retryLimit: 10,

but it didn't work

+3


source to share





All Articles