locked
Add webresource or iframe MS CRM 2013 RRS feed

  • Question

  • Hi All,

    Is it possible to add webresource or iframe between ribbon button tab and information. 
    Check the below screenshot.
    Supported or Unsupported by any way provide solution.

    Thanks

    Monday, August 11, 2014 10:08 AM

Answers

  • I think this will do what you want:

    (have tested in IE11 console, but don't have an environment to deploy it too)

    var crmPanel = document.getElementById("mainContainer");
    var iFrame = document.createElement('iframe');
    iFrame.src = encodeURI("www.google.co.uk");
    crmPanel.insertBefore(iFrame, crmPanel.childNodes[0]);

    I imagine this is horrendously unsupported, but seems to do the job.

    • Marked as answer by Suresh Sorde Tuesday, August 19, 2014 5:27 AM
    Friday, August 15, 2014 11:43 AM

All replies

  • Use java script .

    Insert HTML element as

    var para = document.createElement("p");
    var node = document.createTextNode("This is new.");
    para.appendChild(node);

    var element = document.getElementById("div1");
    element.appendChild(para);


    Hope this helps. ----------------------------------------------------------------------- Santosh Bhagat If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

    Monday, August 11, 2014 11:57 AM
  • Hi Santosh,

    Thanks for your reply.

    How to use this script.. I have added this in javascript but its not working.

    As i want to add html webresource between ribbonbutton and account infomation. 


    Monday, August 11, 2014 12:38 PM
  • I think this will do what you want:

    (have tested in IE11 console, but don't have an environment to deploy it too)

    var crmPanel = document.getElementById("mainContainer");
    var iFrame = document.createElement('iframe');
    iFrame.src = encodeURI("www.google.co.uk");
    crmPanel.insertBefore(iFrame, crmPanel.childNodes[0]);

    I imagine this is horrendously unsupported, but seems to do the job.

    • Marked as answer by Suresh Sorde Tuesday, August 19, 2014 5:27 AM
    Friday, August 15, 2014 11:43 AM
  • Hi, Thank you. It is working.

    Now i have one problem, i used html webresource url in iframe and its working but when i do an action on this iframe after done its became collapsed and i need to refresh the page to make it expand. My problem is i need to set it in expand after perform an action. Means it should be in expand mode every time.

    Tuesday, August 19, 2014 5:33 AM
  • If you double click iframe in design view. The property window will open. on the 2nd tab you will get option to expand the iframe.

    Regards Faisal

    Tuesday, August 19, 2014 1:48 PM
  • Hi Faisal,

    Thanks, but i am using javascript to create iframe as the code provided by cdstudios.

    Here i am not getting any property window of iframe. I want this in javascript code. 

    Please help.


    Tuesday, August 19, 2014 3:03 PM
  • The property window of iframe must be there as it is present with all the fields. Open form in design mode and double click the iframe


    Regards Faisal

    Tuesday, August 19, 2014 3:14 PM