SharePoint 2013 Dialog 此内容不能显示在一个框架中
此处内容是引用了SP.UI.Dialog。
与Iframe 引起的内容处理方法完全不一致。用了一天的时间,也没有修改完成。后来发现如下修改可以搞定。
此内容不能显示在一个框架中 | |||
为了帮助保护在此网站中输入的信息的安全,此内容的发布者不允许在框架中显示该信息。 |
| ||
你可以尝试以下操作: |
| ||
在新窗口中打开此内容 |
|
使用IE错误抓图如下,如果使用chrome则是空白页面。
如果是Iframe引起的请参考霖雨的博客:
http://www.cnblogs.com/jianyus/p/3385514.html
http://www.cnblogs.com/jianyus/p/3808210.html
如果是Dialog 引起的,使用上述方法无效。
首先,做如下设置:
- 在 Internet Explorer 上 工具 菜单中,单击 Internet 选项.
- 单击安全 选项卡上,单击 受信任的站点区域,然后单击 站点.
- 请确保在中列出的以下各项 网站 列表:
- *.microsoftonline.com
- *.sharepoint.com
看到这里问题很明确了吧。
Mixed Content: The page at 'https://xxx.xxx.com.cn/itc/SitePages/CreateReport.aspx' was loaded over HTTPS, but requested an insecure resource 'http://sharepoint/_layouts/15/AD/adPicker.aspx?ou=gdUsers&IsDlg=1'. This request has been blocked; the content must be served over HTTPS.
这里你内层和外层修改成一致即可。
也可以参考这个,我使用这个方法没有成功。
https://msdn.microsoft.com/ZH-CN/library/office/fp179921(v=office.15).aspx