如何使用HTTP POST请求将参数发送到Iframe [英] How to send parameter to Iframe with a HTTP POST request

查看:273
本文介绍了如何使用HTTP POST请求将参数发送到Iframe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须用POST方法发送一些参数给IFRAME。
我在这里阅读过设置<的HTTP请求类型; iframe> ,这是不可能的。我想在Javascript中的解决方案,但我不能实现它,所以我不能测试它是否是这个问题的有效解决方案。
我想问一下,如果有人有同样的问题,如果有可能解决,并在积极情况下如何?

I have to send some parameter to an IFRAME with POST method. I have read here Setting the HTTP request type of an <iframe> that it isn't possible. I'm thinking a solution in Javascript but I can't implement it so I can't test if it is a valid solution for this issue. I want to ask if someone has the same problem and if it is possible to solve and in positive case how to?

推荐答案

<form ... target="hidden_iframe">
...
</form>

<iframe name="hidden_iframe" ...></iframe>

这篇关于如何使用HTTP POST请求将参数发送到Iframe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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