I\'m using jQuery.getJSON() 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 do
This works:
j.ajaxSetup({ "error":function(xhr, ajaxOptions, thrownError) { console.log(thrownError); }});