web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Getting JavaScript error 'remove_readyStateComplete' is not a function in dynamics 2015 IFrame when calling Xrm.Page.getControl('...').remove_readyStateComplete()

(0) ShareShare
ReportReport
Posted on by

Hi 

I have added one IFrame in opportunity main page, I am calling following function on IFrame load -

function loadIFrame(context) {

Xrm.Page.getControl('...').remove_readyStateComplete();

}

at line Xrm.Page.getControl('...').remove_readyStateComplete() i am getting following error -

26836.Capture.PNG

I am using Microsooft Dynamics 2015 online account.

This code was working in CRM 2013

Can anyone help me what is alternate method in crm 2015

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    on at

    Sonu,

    Walkthrough the following article:

    blogs.msdn.com/.../microsoft-dynamics-crm-online-2015-update-1-new-form-rendering-engine.aspx

    Hope this helps.

    Regards,

    R.Rajkumar

    "Please mark my answer as verified if you found it helpful"

  • Royal King Profile Picture
    27,686 on at

    there is no method with name "remove_readyStateComplete" exists for Iframe control. check the below url for all the supported methods for ifrmae control

    msdn.microsoft.com/.../Gg334266.aspx

  • Community Member Profile Picture
    on at

    remove_readyStateComplete is event handler, it was working with CRM 2013

  • Community Member Profile Picture
    on at

    Thanks for you reply, the article is very useful, but i didn't found any information and alternate method to use remove_readyStateComplete.

  • Suggested answer
    Royal King Profile Picture
    27,686 on at

    Here is the script that removes onreadystatecomplete event from the iframe. I tested this script in my environment and it worked.

    Replace "IFRAME_XYz" with your iframe name in parameter

    Xrm.Page.getControl("IFRAME_XYz").remove_readyStateComplete(IFRAME_XYz_onreadystatecomplete_handler);

  • Community Member Profile Picture
    on at

    Hi Chitarasan,

    I am still getting following error while running you suggest code, here i have Replaced "IFRAME_XYz" with my iframe name in parameter

    Uncaught ReferenceError: IFRAME_XYz_onreadystatecomplete_handler is not defined

       at eval (eval at evaluate (unknown source), <anonymous>:1:61)

       at Object.InjectedScript._evaluateOn (<anonymous>:895:55)

       at Object.InjectedScript._evaluateAndWrap (<anonymous>:828:34)

       at Object.InjectedScript.evaluateOnCallFrame (<anonymous>:954:21)

    Thanks

    Sonu Gupta

  • Community Member Profile Picture
    on at

    Is there any Iframe setting that i have fogot?

  • Suggested answer
    Royal King Profile Picture
    27,686 on at

    you have to replace IFRAME_XYz in 2 places check the highlighted in red. In your code it seems you replaced it in only one palce.

    Xrm.Page.getControl("IFRAME_XYz").remove_readyStateComplete(IFRAME_XYz_onreadystatecomplete_handler);

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans