locked
How to Refresh the Parent Page from Child Page in crm using javascript RRS feed

  • Question

  • Hi All,

    I want to Refresh the Parent Page from the child Page in CRM 2011 using javascript.

    By google i got some code as: 

    window.parent.opener.parent.location.reload();

    It is working fine on IE10. But majority of our customers are using IE11. The code is not working on IE11 and all the other browsers.

    When i use other browsers it is giving error as:

    Microsoft Dynamics CRM Error Report Contents

    <CrmScriptErrorReport>
      <ReportVersion>1.0</ReportVersion>
      <ScriptErrorDetails>
       <Message>Uncaught SyntaxError: Unexpected end of input</Message>
       <Line>0</Line>
       <URL>/userdefined/edit.aspx?_CreateFromId=%7b27D0C9B0-8B85-E311-8CE2-067F90A72129%7d&_CreateFromType=10001&etc=10034&id=%7bF11EE1D5-C3A5-E311-AF99-067F90A72129%7d&pagemode=iframe</URL>
       <PageURL>/userdefined/edit.aspx?_CreateFromId=%7b27D0C9B0-8B85-E311-8CE2-067F90A72129%7d&_CreateFromType=10001&etc=10034&id=%7bF11EE1D5-C3A5-E311-AF99-067F90A72129%7d&pagemode=iframe</PageURL>
       <Function>anonymousror:Unexpectedendofinput</Function>
       <CallStack>
        <Function>anonymousror:Unexpectedendofinput</Function>
       </CallStack>
      </ScriptErrorDetails>
      <ClientInformation>
       <BrowserUserAgent>Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36</BrowserUserAgent>
       <BrowserLanguage>undefined</BrowserLanguage>
       <SystemLanguage>undefined</SystemLanguage>
       <UserLanguage>undefined</UserLanguage>
       <ScreenResolution>1280x1024</ScreenResolution>
       <ClientName>Web</ClientName>
       <ClientTime>2014-03-07T12:15:57</ClientTime>
      </ClientInformation>
      <ServerInformation>
        <OrgLanguage>1033</OrgLanguage>
        <OrgCulture>1033</OrgCulture>
        <UserLanguage>1033</UserLanguage>
        <UserCulture>1033</UserCulture>
        <OrgID>{FD89CDC6-072A-E311-90AB-067F90A72129}</OrgID>
        <UserID>{001D87CD-072A-E311-90AB-067F90A72129}</UserID>
        <CRMVersion>5.0.9690.3731</CRMVersion>
      </ServerInformation>
    </CrmScriptErrorReport>

    Please help me regarding this issue.

    Friday, March 7, 2014 6:45 AM

All replies

  • HI Ashok,

    have you tried adding the url into the IE 11 compatibility view list ?



    Regards,
    Damian Sinay

    Friday, March 7, 2014 9:22 AM
  • You want to refresh your parent page in iframe? If yes, I think below statements may help you:

    if your CRM version is 2011

    contentIFrame.Xrm.Page.data.refresh()

    if your CRM version is 2013

    contentIFrame0.Xrm.Page.data.refresh() or contentIFrame1.Xrm.Page.data.refresh(), yes, there are two options in 2013, it's very confuse me. but i still did not find the reason.

    • Proposed as answer by Chen Xiong Friday, March 7, 2014 10:00 AM
    Friday, March 7, 2014 9:59 AM