I agree - you probably discard it when it is not there; try adding error handling:
$.get('cfc/partsDefinition.cfc',{ method: 'checkValid', search: 'some search string' }, function(data, textStatus, jqXHR){ // Success Case console.log(data); console.log(jqXHR); } ); $('.errorContainer').ajaxError(function(event, jqXHR, ajaxSettings, thrownError){ $(this).append('ohhhhz noooz - ajax error'); console.log(event); console.log(jqXHR); console.log(ajaxSettings); console.log(thrownError); });
In jQuery, the shorthand get() expression does not have built-in error handling - it just cancels it. Therefore, if you are trying to catch something, you need to make your own error handlers.
http://api.jquery.com/ajaxError/
source share