Detecting an image 404 load in javascript/jquery when there is content returned?
<p>I've run into a dilemma with jQuery's onerror handling (or more specifically the browser's javascript onerror event). I've got an image handler which loads an image from the database, and if it isn't found it returns a 404 status code but also a default not found image.</p>

<p>It turns out that unless the content body is empty, the browser doesn't fire the onerror event. jQuery states this is based on the response status code, but this must not be true. Anyone know of a way around this?</p>
