> jQuery.ajax({ > type: 'GET', > url: "http://picasaweb.google.com/data/feed/base/user/ > picasa_non_esistent_user?kind=album&alt=json", > dataType: 'jsonp', > error: function (xhr, ajaxOptions, thrownError) { > alert("error triggered"); > if(xhr.status == 404) { > alert("User not found"); > } > } > }); > > It should catch 404, strangely it doesn't do anything. > > from firebug I could see the 404 returned by picasa yet it doesn't > trigger the error function at all.
That won't work with jsonp. It does not use ajax and can not trap errors like that.