Change CRM IFrame Document Mode RRS feed

  • Question

  • Hi,

    On the account level in CRM we have a link in the navigation pane which calls a custom site in the content page (right side). When the user clicks on the link, a HTML web resource is called.

    For some reasons I need to change the "document mode" of this content page to IE8.

    Here is the code I added in the web resource:

    var head_tag = document.getElementsByTagName('head')[0];
    var m = document.createElement("meta");
    m.setAttribute("http-equiv", "X-UA-Compatible");
    m.setAttribute("content", "IE=EmulateIE8");
    head_tag.insertBefore(m, head_tag.firstChild);

    The code works fine, but the emulation is not made. Anyone has an idea how to fix this?

    Best regards, Jeppen

    Jeppen Twitter: @DoSTHGreat

    Friday, September 5, 2014 2:05 PM