我想通过iframe传输发送包含文件和一些文本字段的发布请求。IE9 SCRIPT5访问被拒绝
(jQuery的文件uload + jquery.iframe运输)
http: //192.168.1.36:3001/index.html
主要页面的URL。请求网址是http: //192.168.1.36:3001/api/upload
。
等问题。
其他信息:
browser: ie 9.0.8112.16421
headers of /index.html:
Cache-Control:no-cache
Cache-Control:public, must-revalidate, proxy-revalidate
Connection:keep-alive
Content-Encoding:gzip
Content-Type:text/html
Date:Thu, 25 Sep 2014 19:34:41 GMT
Expires:Thu, 25 Sep 2014 19:34:40 GMT
Last-Modified:Thu, 25 Sep 2014 19:17:41 GMT
P3P:CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"
Pragma:public
Server:nginx/1.6.2
Transfer-Encoding:chunked
Vary:Accept-Encoding
domain in iframe is 192.168.1.36, domain in main page is same (192.168.1.36)
但"SCRIPT5 Access denied" in "form[0].submit()"
。我替换了"form.submit()" to "form[0].submit()"
。
此外我试图添加到窗体一个特殊的提交按钮,并试图触发('点击')。不起作用。
有没有可能?
感谢
你试图让父页面的一些JS代码提交表单中的iframe子页面? – 2014-09-25 19:56:23
@MarcB我试图通过iframe传输从主页面发送ajax请求。你是否阅读并理解这个问题? – 2014-09-25 20:00:19
**你的问题中的NOWHERE **你曾经提到过“ajax”,并且没有“iframe传输”这样的东西。 – 2014-09-25 20:01:19