搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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.

  • 1 个回答
  • 1 人有此问题
  • 8 次查看
  • 最后回复者为 Paul

more options

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.

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)

more options

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.