Hi,
I am inserting an iframe in the html web resource and want to set the iframe url with a parameter.
But the iframe always being blank when I test it. What am I doing wrong? how do I set the url?
Here is what I am doing:
<html><head>
<title></title>
<script src="ClientGlobalContext.js.aspx" type="text/javascript"></script>
<script type="text/javascript">
document.onreadystatechange = function () {
if (document.readyState == "complete") {
SetLeftNavigation();
}
}
function SetLeftNavigation() {
var WebPageURL = "http://crm1t/Calendar.aspx";
var userId =window.parent.Xrm.Page.context.getUserId(); //to access userid from entity form
userId =userId.replace('{', '').replace('}', '');
var iFramUrl = WebPageURL + "?id=" + userId;
Xrm.Page.getControl(IFRAME_CustomCalendar).setSrc(iFramUrl);
}
</script>
</head>
<body style="word-wrap: break-word;">
<iframe id="IFRAME_CustomCalendar" src="about:blank" height="450" width="1000"></iframe>
</body></html>
Someone please guide me. Thanks.
*This post is locked for comments
I have the same question (0)