154
rated 0 times
[
155]
[
1]
/ answers: 1 / hits: 17107
/ 13 Years ago, sun, november 13, 2011, 12:00:00
I have a page with a lot of images that are generated server-side depending on user actions. And when image loads successfully I'm happy, but when there is an error on the server I have to act according to what an error occurred.
For example:
- 500 code: do this stuff.
- 503 code: do that stuff
and so on.
So, my question: is there any way to get status code within img tag on-error event handler?
More From » image