Hi Team,
I have written the below javascript onload of a CRM entity to display document(eg,image,pdf,text etc) in CRM Iframe which is located in a network path. This path is given in a field of that CRM form. The document is being displayed in IFrame on load of the form in Internet explorer. In google chrome IFrame content is blank.
function onFormLoad()
{
$(document).ready(function () {
var IFrame = Xrm.Page.ui.controls.get("IFRAME_MyIFrame");
IFrame.setSrc(GetFieldValue("xyz_sharepointurl"));
});
}
function GetFieldValue(fieldName) {
if (fieldName != null && Xrm.Page.getAttribute(fieldName) != null)
return Xrm.Page.getAttribute(fieldName).getValue();
}
Please let me know if there is any solution to achieve this functionality in Google Chrome.
I have written the below javascript onload of a CRM entity to display document(eg,image,pdf,text etc) in CRM Iframe which is located in a network path. This path is given in a field of that CRM form. The document is being displayed in IFrame on load of the form in Internet explorer. In google chrome IFrame content is blank.
function onFormLoad()
{
$(document).ready(function () {
var IFrame = Xrm.Page.ui.controls.get("IFRAME_MyIFrame");
IFrame.setSrc(GetFieldValue("xyz_sharepointurl"));
});
}
function GetFieldValue(fieldName) {
if (fieldName != null && Xrm.Page.getAttribute(fieldName) != null)
return Xrm.Page.getAttribute(fieldName).getValue();
}
Please let me know if there is any solution to achieve this functionality in Google Chrome.