在IE中通过Iframe传递参数的问题 [英] Problem passing parameters via Iframe in IE

查看:681
本文介绍了在IE中通过Iframe传递参数的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试执行从我的网站到通过iframe引入的其他网站的HTTP GET。

I'm trying to execute an HTTP GET from my website to another website that is brought in via iframe.

在Firefox上,您可以在源中看到

On Firefox, you can see in the source that the correct url is in the iframe src along with it's correct parameters-- and it works.

在IE中,您可以在源代码中看到正确的网址位于iframe src以及它的正确参数 - 它不工作...

On IE, you can see in the source that the correct url is in the iframe src along with it's correct parameters-- and it doesn't work...

有一些关于IE的东西,不允许你通过iframe传递参数查询字符串?

Is there something about IE that doesn't let you pass parameters through an iframe in the querystring?

我尝试刷新IE中的iframe,我尝试刷新我的页面& IE中的iframe,我已经尝试复制的url,并重新粘贴到iframe src(强制它刷新,就像我刚刚输入到iframe窗口的地址栏)。仍然没有运气!

I've tried refreshing the iframe in IE, I've tried refreshing my page & the iframe in IE, and I've tried copying the url and re-pasting it into the iframe src (forcing it to refresh as if I just entered it into the address bar for that iframe window). Still no luck!

任何人都知道为什么会发生这种情况,或者有任何建议试图解决这个问题吗?

Anyone know why this is happening, or have any suggestions to try to get around this?

修改:我无法给出此链接,因为该网站需要我们网站和我们供应商网站的密码和登录凭据。即使我可以在我们的网站上做一个测试帐户,它不会对测试过程有任何好处,因为我不能做同样的供应商网站。至于代码,它所做的是在页面加载的后端代码中创建 src ,并从后端设置src属性...

I cannot give a link to this because the site requires a password and login credentials to both our site and our vendor's site. Even though I could make a test account on our site, it would not do any good for the testing process because I cannot do the same for the vendor site. As for the code, all it's doing is creating the src from the backend code on page load and setting the src attribute from the back end...

//Backend code to set src
mainIframe.Attributes["src"] = srcWeJustCreated;

//Front end iframe code
<iframe id="mainIframe" runat="server" />






编辑问题从来没有解决。回答自动接受,因为赏金过期。当我们的网站更接近上线时,我会再次询问此问题,并提供更多信息和指向该网页的链接。


Problem was never solved. Answer auto accepted because the bounty expired. I will re-ask this question with more info and a link to the page when our site is closer to going live.

感谢,

Matt

Thanks,
Matt

推荐答案

通过IE查询参数中的默认安全设置在iframe中被阻止。在Internet选项下的安全选项卡上,将您的安全级别设置为低。如果这修复了你的问题,那么你知道这是你的问题。如果网站是为外部客户,那么期望他们拒绝他们的安全设置可能是不合理的,所以你可能需要找到一个工作。

By the default security settings in IE query parameters are blocked in Iframes. On the security tab under internet options set your security level to low. If this fixes your problem then you know that is your issue. If the site is for external customers then expecting them to turn down their security settings is probably unreasonable, so you may have to find a work around.

这篇关于在IE中通过Iframe传递参数的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆