Hi all, I have a problem on ajax error event handler with non existing file on url parameter -> 404 feedback ( the other event success / complete works fine all browser ). With the code below, FF 2.0.0.14 and OPERA 9.27 fire error event but IE 7 and SAFARI 3.1.1 not.
Thanks in advance, i start to look in your code ...
$.ajax (
{
type: 'POST',
url: 'a file that do not exist',
dataType: 'HTML',
data :'test=1',
success: function (data, textStatus) {
alert('success');
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert('error');
},
complete : function(XMLHttpRequest, textStatus) {
alert('complete');
}
}
);