ie8 给出错误“对象不支持此方法或属性”上传第二张图片时
我正在尝试实现 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好的,修好了。
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.