
Firefox alerts a 550 error when an FTP hosted image is removed from DOM and a new image is added to the DOM with a similar location.
We've worked on developing an image carousel on a web site hosting model output for the NWS. The images themselves are hosted on a FTP server and are merely added into the page via an "img" tag with the href attribute pointing to the URL of the appropriate image. It works in other browsers, but Firefox throws an alert for each image that appears to be reused for the new request. I will explain.
Say 1 image is added to the DOM. The image will load just fine. Say an option is changed to cause the 1 image to be removed and 16 new images to load into the carousel, a single alert will pop saying "550 Failed to change directory". Now, if an option is changed to remove the 16 images and add 30 more, the same alert from before will be displayed 16 times. Based on this behavior and the nature of the FTP error, it appears Firefox is attempting to reuse the FTP connection it kept from the previously opened image even though the image was completely removed from the DOM and the new image was re-added without any relation to the previously removed images.
Obviously, the alerts make the image viewer very hard for Firefox users to use, and I've been unable to track down a fix for the issue. Thanks for your attention.
所有回复 (1)
Hi
For web development and programming support, I recommend that you ask in Stack Overflow.
The experts there should be able to help with this issue.