如何将http站点的IFrame集成到https站点。 [英] How to integrate IFrame for http site to a https site.?

查看:319
本文介绍了如何将http站点的IFrame集成到https站点。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家,



我有一个Web应用程序,它是Asp.Net和DNN的组合,我也使用了一些第三方dll。我的网站正在使用http我希望将此网站的Iframe集成到使用https的网站。我需要帮助,任何人都有任何想法......紧急。



直到现在我已经在https网站上放置了一个iframe,我通过javascript动态分配源代码onclient点击按钮。



以下是我的javascript函数:



Hi Experts,

I have a web app which is combination of Asp.Net and DNN and also I am using some third part dlls. My website is using http I want to Integrate an Iframe of this site to a site which is using https. I need help for this can anybody have any idea..its urgent.

Till Now I have placed an Iframe in https website and I am assigning source dynamically through javascript using onclient click of a button.

following is my javascript function:

function myFunction() {
 
window.open('http://client.edocbuilder.com/html5plus.aspx?docCode=152922bd-f31e-4945-b836-266c42afc68f&docPwd=f1e6d7a2-6d14-45ae-89ca-5a3af6befde0&postbackURL=close&addToCartButton=Finished%20Editing&cancelButton=Cancel%20Order&approveWhenDone=true', null, 'height=500, width=500, status=no, resizable=no, scrollbars=yes, toolbar=no,location=no, menubar=no');
 
document.getElementById("iframe1").src= "https://client.edocbuilder.com/html5plus.aspx?docCode=152922bd-f31e-4945-b836-266c42afc68f&docPwd=f1e6d7a2-6d14-45ae-89ca-5a3af6befde0&postbackURL=close&addToCartButton=Finished%20Editing&cancelButton=Cancel%20Order&approveWhenDone=true";    
   
}

推荐答案

请参阅此链接:如何在https网站上的iframe中允许http内容


嗨专家,

我通过以下方式解决了我的问题: -





Hi Experts,
I solved my problem by following way:-


My javascript function 







引用:

< script type =text / javascript>

函数myFunction(){



document.getElementById (dnn_ctr560_ProductDetails_ctl02_iframe1)。src =https://client.edocbuilder.com/html5plus.aspx?docCode=152922bd-f31e-4945-b836-266c42afc68f&docPwd=f1e6d7a2-6d14-45ae-89ca-5a3af6befde0&postbackURL=close&& ; addToCartButton =已完成%20Editing& cancelButton =取消%20Order& approveWhenDone = true;



}

&l t; / script>

<script type="text/javascript">
function myFunction() {

document.getElementById("dnn_ctr560_ProductDetails_ctl02_iframe1").src = "https://client.edocbuilder.com/html5plus.aspx?docCode=152922bd-f31e-4945-b836-266c42afc68f&docPwd=f1e6d7a2-6d14-45ae-89ca-5a3af6befde0&postbackURL=close&addToCartButton=Finished%20Editing&cancelButton=Cancel%20Order&approveWhenDone=true";

}
</script>







Code for Iframe:-<blockquote class="quote"><div class="op">Quote:</div></blockquote>




<blockquote class="quote"><div class="op">Quote:</div><iframe id="iframe1" runat="server" scrolling="no" width="600px" height="400px" src=""></iframe></blockquote>










Button by which I am calling javascript function:-







<blockquote class="quote"><div class="op">Quote:</div><input type="submit" value = "Customize" onclick="javascript:myFunction();return false;"/></blockquote>







感谢您的帮助,

Mukesh




Thanks For the help,
Mukesh


这篇关于如何将http站点的IFrame集成到https站点。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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