iFrame remains empty
Hi,
I'm trying to use a control containing an iFrame. However, the iFrame remains empty... I tried the following code in a custom html control:
<iframe style="width:100%; height:100%;" id="myFrame" name="myFrame" src="http://www.w3schools.com">
</iframe>
I also tried with an html section, but with the same result: my iFrame is still empty. For some reasons, I can't use the Live Ui in that screen as well.
How can I get my iFrame to work? Thanks in advance.
Hi Thomas,
At first place, kindly check the valid certificate is available or not?
Changes made:-
1. Add the URL in the trusted site.
2. Display mixed content
Refer this post for details:- https://collaborate.pega.com/question/launching-url-iframe-pop
Alternatively, try using below script :-
<frameset name="" id="" >
<script>
var windowUrl = window.location.href;
var headUrl = windowUrl.split("?")[0] + "?";
var contentUrlSite = "pyActivity=CLASSNAME.ACTIVITYNAME";
var iframeSite = "<iframe id='YOURIFRAMEID' name='YOURIFRAMENAME' src='"+headUrl+contentUrlSite+"' width='' height='500px' frameborder='0' scrolling='yes' />";
document.write(iframeSite);
</script>
</frameset>
Kindly notify, if it helps.
Regards,
Asif