Sharepoint Office Web App在框架中打开时发生故障

Sharepoint Office Web App在框架中打开时发生故障,sharepoint,iframe,office-web-components,Sharepoint,Iframe,Office Web Components,查看docx文档是通过在iframe中启动word应用程序实现的,如下所示: <script type="text/javascript"> function appendPreview() { $('<iframe src="http://xxxxx/_layouts/WordViewerFrame.aspx?id=yyyyy.docx&Source=zzzzz" style="position: fixed; height: 100%; width: 100

查看docx文档是通过在iframe中启动word应用程序实现的,如下所示:

<script type="text/javascript">
function appendPreview() {
    $('<iframe src="http://xxxxx/_layouts/WordViewerFrame.aspx?id=yyyyy.docx&Source=zzzzz" style="position: fixed; height: 100%; width: 100%"></iframe>').appendTo('body');
}
</script>
<button onclick="appendPreview()">Preview</button>

函数appendPreview(){
$('')。附于('正文');
}
预览
执行时,web app会按预期启动,但会显示“Word web app由于未知错误而无法打开此文档”。Sharepoint日志显示“检测到以前关闭的SPWeb对象使用了SPRequest。请在处理完从SPWeb对象获取的所有对象后关闭SPWeb对象,但不要在之前。”如果在新的浏览器选项卡中而不是在iframe中打开源链接,则一切正常。值得注意的是,在IE中实际显示文档只会失败,其他浏览器会接受这个错误


有什么想法会出错吗?

问题是我通过元指令请求IE10模式,而Sharepoint 2010只知道IE9