How can you handle errors in a getJSON call? Im trying to reference a cross-domain script service using jsonp, how do you register an error method?
+1
A:
See this question. A quote:
It seems that JSONP requests that don't return a successful result never trigger any event, success or failure, and for better or worse that's apparently by design.
After searching their bug tracker, there's a patch which may be a possible solution using a timeout callback. See bug report #3442. If you can't capture the error, you can at least timeout after waiting a reasonable amount of time for success.
jtbandes
2009-11-16 05:23:21
A:
Seems there is no error method from what I have read here. This answer offers a good explanation
Ben Shelock
2009-11-16 05:23:38