Hello,
I've got a SharePoint 2013 (online) and a Dynamics CRM (online). I want to show a document library within a customer in an iframe. For this I have to allow framing. No problem.
The problem is I want to have a minimal.master in the IFrame at CRM but if I go to the SharePoint itself I want to use the seattle.master.
I have inserted a JavaScript that sets css styles for several controls (display:none). According to a request parameter the JavaScript code takes effect. This works realy fine.
Now the SharePoint itself causes trouble. If I want to click on "Edit Properties" in the context menu of a document an exception is thrown. In the sharing.js the code "window.top" is used. This can't work in an iframe.
So I see just two options
1. edit default code of SharePoint. I don't like it and I don't know how, because it is the online version
2. Tell the sharepoint to use another masterpage if a request parameter is true
Or does anyone knows another solution? How could it work?