title: Catching a JSONP error on a cross-domain request
body: <p>I'm using <a href="http://api.jquery.com/jQuery.getJSON/" rel="nofollow"><code>jQuery.getJSON()</code></a> on a URL (different domain) which may not exist. Is there a way for me to catch the error "Failed to load resource"? It seems that try/catch doesn't work because of the asynchronous nature of this call.</p>
  
  <p>I can't use <a href="http://api.jquery.com/jQuery.ajax/" rel="nofollow"><code>jQuery.ajax()</code></a>'s "<code>error:</code>" either. From the documetation:</p>
  
  <blockquote>
    <p>Note: This handler is not called for cross-domain script and JSONP requests.</p>
  </blockquote>