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
jquery jquery-mobile


source to share


No one has answered this question yet

Check out similar questions:

1957
Disable / enable input with jQuery?
1744
Cancel Ajax requests with jQuery
1273
How to handle redirect request after jQuery Ajax call
390
How can I submit FormData objects using Ajax requests in jQuery?
254
JQuery.ajax processing continues: "success:" vs ".done"?
237
JavaScript / jQuery to upload file via POST with JSON data
93
JQuery ajax error function
1
Mobile Safari disables ajax feature in iOS 5
0
Token error while parsing return data in Ajax call
0
jquery ajax call question



All Articles
Loading...
X
Show
Funny
Dev
Pics