Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

SP.UI.ModalDialog.showModalDialog method is not working for any URL other than the same site collection

$
0
0

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


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>