what $.ajax error happened?

what $.ajax error happened?

Hi,

I have the following AJAX request:

$.ajax({
    type: 'POST',
    url: 'url',
    success: function(xml, status, request) { alert(status); },
    error: function(request, status, error) { alert(status); alert(request); alert(error); }});

The request always returns an error (the error handling function is always called) and I get "error" for status and "undefined" for error. Could you please help me see where the problem is and what I could do to get more details about the problems?

Note: the url is a fully qualified url that returns an xml. I have tested it with browser.

Thank you.