ie8 给出错误“对象不支持此方法或属性”上传第二张图片时

发布于 2024-10-05 04:28:36 字数 406 浏览 0 评论 0原文

我正在尝试实现 shift8creative 的敏捷上传器。在适当的浏览器中一切正常,但 ie 会引起问题。

页面在这里:https://www.postadigi.com/pages/upload-order

js 错误突出显示的行在这里:

document.getElementById('agileUploaderSWF').sendForm();

我尝试将其放入 onclick(一个 jquery click 函数)中。同样的错误。

注意,它压缩 &上传第一个图像很好,但是当选择第二个图像并单击上传时,它会失败。

I'm trying to implement shift8creative's agile uploader. All works well in proper browsers, but ie is causing problems.

the page is here:https://www.postadigi.com/pages/upload-order

the line the js error is highlighting is here:

document.getElementById('agileUploaderSWF').sendForm();

Iv'e tried putting it in a onclick, a jquery click function. Same error.

NB, it compresses & uploads a first image fine, but then when a second image is selected and upload clicked, it fails.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

菩提树下叶撕阳。 2024-10-12 04:28:36

好的,修好了。

Internet Explorer 正在缓存 swf 数据,详细信息如下:

http://www.permadi.com/ tutorial/flashcache/index.html

因此,感谢 Richard Grove 关于插件评论的提示,我用一些技巧修复了它:

flashSrc: '/js/uploader/agile-uploader.swf?' + Math.random(),

这似乎说服了 ie 不缓存它。

OK, fixed it.

Internet explorer was caching the swf data as detailed here:

http://www.permadi.com/tutorial/flashcache/index.html

So thanks to a tip from Richard Grove on the plugins comments, i fixed it with a bit of trickery:

flashSrc: '/js/uploader/agile-uploader.swf?' + Math.random(),

Which seems to have convinced ie to not cache it.

無心 2024-10-12 04:28:36
document.getElementById('agileUploaderSWF').sendForm();
document.getElementById('agileUploaderSWF').sendForm();
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文