Any way to know if $.getJSON() failed?
Hi,
I'm writing an app which gets some JSON from a web server. Everything is fine but I'd like to know if the request failed for any reason.
Actually, $.getJSON has a callback to call when the request succeeds, but nothing to call if anything went wrong, it simply silently fails.
I tried using $.ajax() instead using the 'jsonp' datatype but again, when the request fails, the 'error' callback is not called.
Anyone knows what I might be doing wrong?
Cheers!