> I think this is a known limitation of jsonp as a technique, not a bug > with jquery itself. Jsonp works by appending a script tag to the DOM, > whose "src" attribute points to the URL you specify. The URL is > expected to wrap a json object in a function call to the function you > specify, and the returned text is evaluated using eval().. Just like > script tags that are returned in the sorce HTML, if the server doesn't > respond (or throws a 404), I don't think there is a way to determine > that through JavaScript. > > $.ajax() can determine other error scenarios by inspecting the XHR > object, but jsonp doesn't use XHR. Hope that helps.
Here's a jsonp function that handles errors and timeouts: http://gist.github.com/82181