我想通過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