Hi,
I'm very new to JQuery and am having a problem with an Ajax call that
returns xml. The error event is being fired, but the textStatus value
is 'parserror' and the errorThrown value is 'undefined'. The xml
response is valid so i'm not sure what could be wrong.

$.ajax({
    beforeSend: function() {

     },
    type: "GET",
    url: "ajaxttest.asp",
    dataType: "xml",
    timeout: 1000,
    contentType: "text/xml",
    success: function(xml) {
        alert("in");

    complete: function(XMLHttpRequest, textStatus) {
                alert("comp");
    },
     error: function(XMLHttpRequest, textStatus, errorThrown) {
        alert(textStatus);
     }
});

Xml:

<addresses><address><number>6</number></address></addresses>

Any help would be great.

Reply via email to