http://mypokerpartner.com/
Test is at the link above.
测试在上面的链接。
$('a').click(function(){
$('input[type="file"]').click();
});
$('input[type="file"]').on('change', function(){
$('form').submit();
});
When using the form's browse button the file is submitted on change. when using the link for "A" IE throws an error of SCRIPT5: Access is denied.
使用表单的浏览按钮时,文件将在更改时提交。当使用“A”链接时,IE会抛出SCRIPT5的错误:访问被拒绝。
I want for the anchor link to invoke the file dialog and when a file is selected it auto submits the file to the iframe for a non-reloading file upload
我希望锚链接调用文件对话框,当选择文件时,它会自动将文件提交到iframe以进行非重载文件上传
EDIT: Looks only to be a problem in IE9
编辑:看起来只是IE9中的一个问题
Thanks in advance
提前致谢
1 个解决方案
#1
2
For some reason unknown to me, while the input
field had any name attribute
it would IE would throw the error. Removing the name attribute
for the file input field
fixed this.
由于某些原因我不知道,虽然输入字段有任何名称属性,IE会抛出错误。删除文件输入字段的name属性修复此问题。
#1
2
For some reason unknown to me, while the input
field had any name attribute
it would IE would throw the error. Removing the name attribute
for the file input field
fixed this.
由于某些原因我不知道,虽然输入字段有任何名称属性,IE会抛出错误。删除文件输入字段的name属性修复此问题。