[jQuery] Re: Why do both ajaxError and ajaxSuccess fire if the request fails or is a success?

2007-08-01 Thread devioustree
t; > function getXML () { >$.ajax({ >dataType: "xml", >error: function() {errorMessage("The data could not be loaded.") }, >success: function (msg){parseXML(msg);}, >timeout: 1, >url: xmlUrl >}); >

[jQuery] Why do both ajaxError and ajaxSuccess fire if the request fails or is a success?

2007-07-31 Thread devioustree
I was wondering why this code was giving me the error _and_ parsing my XML: function getXML () { $.ajax({ dataType: "xml", error: errorMessage("The data could not be loaded."), success: function (msg){