locked
window.parent is giving error when used within Iframe - crm 2013 IFD!! RRS feed

  • Question

  • Hello Experts,

    window.parent.Xrm.Page.getAttribute(radioName.name).setValue(parseInt(radioName.value));

    above is the line which is giving error. Till now this was working fine but now its giving error as below 


    Uncaught SecurityError: Blocked a frame with origin "https://****.com" from accessing a frame with origin "https://*****.****.com". Protocols, domains, and ports must match

    How to resolve this error. Trying to update attribute value on form on click of radio button in html page called in IFrame.

    Thanks

    Madhu


    Thanks and Regards. MadhuSudhan M

    Wednesday, June 4, 2014 12:24 PM

Answers

  • Try these:- parent.window.Xrm.Page.data.entity.attributes.get(radioName.name).setValue(radioName.value); OR parent.parent.window.Xrm.Page.data.entity.attributes.get(radioName.name).setValue(radioName.value);

    Regards Faisal

    • Marked as answer by Madhu-CRM Thursday, June 5, 2014 6:51 AM
    Wednesday, June 4, 2014 12:51 PM

All replies

  • Try these:- parent.window.Xrm.Page.data.entity.attributes.get(radioName.name).setValue(radioName.value); OR parent.parent.window.Xrm.Page.data.entity.attributes.get(radioName.name).setValue(radioName.value);

    Regards Faisal

    • Marked as answer by Madhu-CRM Thursday, June 5, 2014 6:51 AM
    Wednesday, June 4, 2014 12:51 PM
  • Hi,

    Have you changed any settings in CRM or maybe hosting protocol for CRM recently?


    Admin QuikView Solution for CRM 2013

    Wednesday, June 4, 2014 12:53 PM
  • No Dynamotion.

    Thnaks for the reply. Faisal Fiaz suggestion helped me .


    Thanks and Regards. MadhuSudhan M

    Thursday, June 5, 2014 6:52 AM