Click here to Skip to main content
16,016,623 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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:

JavaScript
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";    
   
}
Posted
Updated 1-Jun-20 7:30am
v4
Comments
Afzaal Ahmad Zeeshan 4-Nov-14 5:40am    
What do you mean by integrate?
Mukesh Pr@sad 4-Nov-14 5:47am    
HI Afzaal,
I want to display an Iframe of http site to https site..Dynamically(Means source will be changed time to time as per user selection)

Thanks

 
Share this answer
 
Comments
Mukesh Pr@sad 4-Nov-14 5:55am    
Hi Kaushal,

I already gone through this..it is explaining for static source.
But my requirement is how to implement for dynamic sources.

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


My javascript function 


Quote:
<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>

ASP.NET
<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:-


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



Thanks For the help,
Mukesh
 
Share this answer
 
v2
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900