I have tried several solutions to replace broken images (both js and jack) and complete with all IE Work like this but not in FF, is there any reason for this?
Can the images be handled differently in FF which can be the reason for this?
JQuery example:
$ ("img") .RAR (function ($ (this). Unbund ("error"). Etr ("src" , "Nopic.jpg");}); Javascript example: (started by Honor Event in IIG tag)
Function number (IMG } {Img.onerror = ""; img.src = "nopic.jpg"; return true;} Both of these examples work perfectly in IE but not at FF Thanks!
Thanks in advance!
Do you test locally Stay Are you pointing to the file URL?
Try to test on a real server, even if it's just local I believe that Firefox relies on the HTTP status code The error is obtained from the image to trigger; If you are loading with a file: // ... no URL is included in the URL, so you do not get the error.
From:
When this page So is displayed on the local level can not be removed properly event as error depends on the normal HTTP status code, so generally it will not be triggered if the URL file: protocol. EDIT: As we have discussed in the comments, it appears that because of some reason your intranet server 404 (or by any other error, With the sound of things) is not responding to the unavailable resource. Because firefox does not receive an error, it does not trigger error handler, which looks like sensible behavior.
I think your problem is not just "My server does not return 404 errors to the missing content", but before you ask, use a bit more to gather evidence (and possibly instead of SO Ask on serverfone) ...
Comments
Post a Comment