Ticket #3110 (closed bug: invalid)
ajax success error
| Reported by: | shadow | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.3 |
| Component: | ajax | Version: | 1.2.6 |
| Keywords: | ajax | Cc: | |
| Blocking: | Blocked by: |
Description
Sometimes - in about 1/20 cases when we very often use ajax request function on success don't work - requested data are return but $('#id2').html(r) is not executed and ajax.error is not executed as well. Changing options like async, cache, timeout doesn't help.
$.ajax( {
url: url, data: { a: "a", b: b, c: c }, type: 'POST', success:
function (r) {
$('#id2').html(r);
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert(XMLHttpRequest); alert(textStatus); alert(errorThrown);
}
} );
Any ideas what is wrong or what can i do about it?
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Can you please provide a test case ? that is, a small html file with the minimum html/css/js necessary to reproduce the problem. Thanks