Hi,
I want to open a few pages in a modal dialogue in SharePoint 2013. I am using the below mentioned method.
SP.SOD.execute('sp.ui.dialog.js', 'SP.UI.ModalDialog.showModalDialog', options);
I am able to open the pages of the sites of the same site collection. But when I pass a URL of the page of a site of other site collection in the same web application or public site pages(e.g., http://www.microsoft.com), it does not work and throws below mentioned message.
"This content cannot be displayed in a frame
To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame.
What you can try:
Open this content in a new window "
I checked a few articles and all suggest to add the sites in trusted site of the browser. I have tried that but it doesnt work for me. Please let me know if anyone can suggest a solution.
Thanks & Regards,
Hemil
Hemil Damor