当我发布信息时如何打开ifram? [英] How To Open Ifram When I Do Post To Form ?
本文介绍了当我发布信息时如何打开ifram?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好直到现在我打开弹出窗口后我发布了来自的重新设置:
hello Until now i opened pop up window after i do post requset from from :
function OpenWindowWithPost(url, windowoption, name, params) {
var form = document.createElement("form");
form.setAttribute("method", "post");
form.setAttribute("action", url);
form.setAttribute("target", name);
for (var i in params) {
if (params.hasOwnProperty(i)) {
var input = document.createElement('input');
input.type = 'hidden';
input.name = i;
input.value = params[i];
form.appendChild(input);
}
}
document.body.appendChild(form);
//note I am using a post.htm page since I did not want to make double request to the page
var hDipositWin = window.open(url, name, windowoption);
form.submit();
document.body.removeChild(form);
它运作良好,现在我不会在iframe中执行相同的操作
我怎么做的?
i托盘:
and it work well , now i wont do the same action in iframe
how i do it ?
i tray :
$('#myIframeContiner').append("<iframe src='" + url + "' width='80%'></iframe>");
但它没有发布我想怎么做?
but it not posted i think how to do this ?
推荐答案
('#myIframeContiner')。append(< iframe src ='+ url +'width ='80%'>< / iframe>);
('#myIframeContiner').append("<iframe src='" + url + "' width='80%'></iframe>");
但是没有发布我想怎么做?
but it not posted i think how to do this ?
这篇关于当我发布信息时如何打开ifram?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文