jquery - Why does $.get trigger errorback on successful request -
i have simple ajax request fetching xml document successful according chrome dev tools (response 200 or 304 correct data), triggers fail callback afterwards reason beyond me.
 $.get('foo.xml')   .done(function (data) {     $xml = $($.parsexml(data));   });   why case?
it turned out error xml parsing error.
the documentation jquery.get not mention different input arguments errorback takes, information found in documentation $.ajax.
Comments
Post a Comment