locked
how to fetch contents of iframe RRS feed

  • Question

  • Hi,

     I want to know how to access the contents of iframe whose src is a site (Monster.com).

    I want to fetch the contents and display it in grid.

    How can i do this .

    Please Help

    Waiting for reply.

    Khan

    Thursday, July 12, 2012 8:29 AM

All replies

  • Hi,

    You can use following script to do that. Please post your Development related questions in CRM Development forum to get the assistance at the earliest.

    var iframe = document.getElementById('iframename'); 
    var iframeContent = iframe.contentWindow.document; 
    var fieldinIFrame = iframeContent.getElementById('fieldname');

    PS: This approach is not a supported way as this is not documented in SDK.

    Hope it helps ...!!!


    Vikranth http://howto-mscrm.blogspot.com "Please Mark it as answer if it helps in resolving your query"

    Thursday, July 12, 2012 11:54 AM
  • Hi Vicky_smag,

    Thanks for your reply.

    I dont have any specific fields in Iframe. i want to access all the contents in the iframe(site).

    The site i used in iframe is Monster.com.

    how can i do this.I have posted in development forum also. Thanks for that. still waiting for your reply also.

    regards

    khan.

    Thursday, July 12, 2012 1:03 PM