uncaught exception: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIDOMHTMLFormElement.submit]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: :: anonymous :: line 11" data: no]
uncaught exception: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIDOMHTMLFormElement.submit]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: file:///C:/Documents%20and%20Settings/Administrator/%E6%A1%8C%E9%9D%A2/x.html :: anonymous :: line 11" data: no]
在Firefox下面,如果将表单提交到隐藏的iframe中,当不是通过http协议访问页面,而是双击在Firefox中运行,或者直接拖拽进入Firefox中查看效果,当用JavaScript调用表单的submit方法时就出会先上面的提示错误。点击“提交”按钮也无法提交表单。
通过http协议访问则不会提示此错误。
测试代码如下
原创文章,转载请注明出处:uncaught exception: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIDOMHTMLFormElement.submit]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: :: anonymous :: line 11" data: no]
在Firefox下面,如果将表单提交到隐藏的iframe中,当不是通过http协议访问页面,而是双击在Firefox中运行,或者直接拖拽进入Firefox中查看效果,当用JavaScript调用表单的submit方法时就出会先上面的提示错误。点击“提交”按钮也无法提交表单。
通过http协议访问则不会提示此错误。
测试代码如下
+展开
-HTML
<iframe name="upload_target" id="upload_target" style="display:none">iframe>
<form action="upload.php" enctype="multipart/form-data" method="post" target="upload_target" name="docFrm">
<input type="text" onblur="document.docFrm.submit();" /><input type="submit" value="提交"/>
</form>
<form action="upload.php" enctype="multipart/form-data" method="post" target="upload_target" name="docFrm">
<input type="text" onblur="document.docFrm.submit();" /><input type="submit" value="提交"/>
</form>
加支付宝好友偷能量挖...
原创文章,转载请注明出处:uncaught exception: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIDOMHTMLFormElement.submit]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: :: anonymous :: line 11" data: no]