Today I have heard that the success-Parameter in the jQuery.ajax function is deprecated. Have I understood that correctly? Or am i missunderstanding something?
For Example this would not work in the future:
$.ajax({
url: 'ax_comment.php',
type: 'POST',
data: 'mode=view¬e_id='+noteid+'&open='+open+'&hash='+hash,
success: function(a) {
...
}
});
And i have to use this?
$.ajax({
url: 'ax_comment.php',
type: 'POST',
data: 'mode=view¬e_id='+noteid+'&open='+open+'&hash='+hash,
success: function(a) {
...
}
}).done(function(a){.....};
Source: http://api.jquery.com/jQuery.ajax/ (Scroll down to Deprecation Notice)
.done()
Jquery would still have that feature, till whenever they decide to pull the plug :) – karthikrsuccess: function
re-read it carefully. – Kevin B