locked
MS CRM 2013 Move MS CRM Scroll to Top is not working in Chrome and Firefox? RRS feed

  • Question

  • Hi,

    We have a custom web application Inside an Iframe. Whenever there is an error we are moving the MS CRM Scroll bar to top using below code.

    window.parent.document.getElementById('tdAreas').scrollTop = 0;

    but its failing in Chrome and Firefox.

    If I put below code.In chrome it alerts an object.But it is not able to get any Element inside that.

    alert(window.parent) 

     Please suggest.

    Thanks


    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer". Thanks and Regards, Mohammad Yusuf Ansari http://microxrm.blogspot.in

    Wednesday, January 7, 2015 6:00 AM

Answers

  • Thanks,

    It was resolved using "postMessage" method

    window.parent.postMessage("SetScrollToTop", "https://" + window.location.hostname);

    Thanks,


    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer". Thanks and Regards, Mohammad Yusuf Ansari http://microxrm.blogspot.in

    Wednesday, January 7, 2015 9:20 AM

All replies