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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -