Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

CRM IFrame content is not showing in google chrome but in Internet explorer in Dynamic CRM 2013

$
0
0
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.

Viewing all articles
Browse latest Browse all 5347

Trending Articles