SharePoint 2013无法在IE8文档模式下显示Infopath表单,因为有两个html节,第一个html节要求浏览器使用IE10 [英] SharePoint 2013 fails to display Infopath form in IE8 Document Mode because of two html sections with the first requesting the browser to use IE10

查看:95
本文介绍了SharePoint 2013无法在IE8文档模式下显示Infopath表单,因为有两个html节,第一个html节要求浏览器使用IE10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

We have an InfoPath form originally developed in Infopath 2010 / SharePoint 2010 that is opened in a browser. We are currently upgrading to SharePoint 2013. The presence of a picker control, for an External Content Type, is causing an error when using IE9, 10 and 11. Our other supported browsers (Mozilla, Safari, Chrome, IE8, Edge) work fine. The error (Namespace prefix 'xsd' is not defined) goes away when we use F12 developer Tools to set the Document Mode to IE8. I have tried to set the document mode to IE8 by adding either

<meta http-equiv="X-UA-Compatible" content="IE=8" />


or

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />


到14和15配置单元中的FormServer.aspx和PickerDialog.master,但是没有运气.我在14个配置单元中的FormServer.aspx中输入的内容被拾取,但是由于'SharePoint'仍在添加它,因此是多余的.全部 SharePoint网站中的其他现有页面和新页面都具有请求IE8的元标记.新的信息路径表单请求IE10.

to the FormServer.aspx and PickerDialog.master in both the 14 and 15 hive, but with no luck. The entry I make in the FormServer.aspx in the 14 hive is picked up, but is redundant as 'SharePoint' is adding it anyway. All other existing and new pages in the SharePoint site have the meta tag requesting IE8. New infopath forms request IE10.

我真正的问题是Infopath表单的浏览器视图源显示了两个html部分,其中第一个简短的html部分包含

The real problem I am having is that the browser view source for the Infopath form shows two html sections, with the first short html section containing

<meta http-equiv="X-UA-Compatible" content="IE=10" />


因此,当IE进入似乎由FormServer.aspx生成的第二个html部分时,现在接IE8请求为时已晚.

so when IE gets to the second html section, which seems to be generated by FormServer.aspx, it is too late to pick up the IE8 request.

我不知道是什么设置第一个html节.如何控制SharePoint在何处生成该第一个html节,以便我可以将其删除或控制文档模式"部分并将其设置为IE8?

I can't figure out what is setting the first html section. How do I get control of where SharePoint is generating that first html section so I can either remove it or get control the Document Mode part and set it to IE8?

浏览器表单源示例如下:

Sample of the browser form source is below:

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html lang='en-US'><head><meta http-equiv="X-UA-Compatible" content="IE=10"/><title>FORM_v2.0.0 - FORM-008967</title></head><body scroll="no" class="v4master"  style='margin: 0px;height:100%;'><div style='height:0px'><div id='_InfoPath_WaitUI' style='height:0px'>
<div style='width:100%'><div style='width:100%;text-align:center;'><div style='height:100px;'></div><table style='margin:125px auto 75px;height:61px;width:300px;border:1px solid #dbdbdb;background-color:white;' cellpadding='0' cellspacing='0'>
<tr>
<td style="padding:16px;border:none;">
<img src='/_layouts/images/gears_anv4.gif' width='24' height='24' style='border:0px none white' alt='' />
</td>
<td style='padding:16px;'>
<div role='alert' style='font:13px Tahoma;font-weight:normal;color:#676767'>Loading Form...</div>
</td>
</tr>
</table></div></div></div></div></body></html>

<html>
    <head><meta http-equiv="X-UA-Compatible" content="IE=8" />
            <script type="text/javascript">

                var _fV4UI = true;
            </script>       
        <script id="sp-js-parallelizer" type="text/javascript">
document.write('<script type="text/javascript" src="/_layouts/1033/init.js?rev=Pom58TWhWfMHjvMqiNyqqg%3D%3D"></' + 'script>');
document.write('<script type="text/javascript" src="/_layouts/entityed.......

          ......lots and lots of stuff......

          </script>
        </form>

    </body>
</html>


任何帮助表示赞赏.


Any help appreciated.

谢谢,

?





推荐答案

约翰,

第一个html中的元设置应来自网站母版页.

The meta setting in the first html should be from the site master page.

您可以使用SharePoint Designer 2013打开网站,然后单击母版页",然后打开并编辑母版页(默认母版页为seattle.master,如果您使用的是自定义母版页,则应进行更改自定义母版页),然后找到 < meta http-equiv ="X-UA-Compatible"内容="IE = 10"/并更改它.

You can open the site with SharePoint Designer 2013, and click Master Pages, then open and edit your master page(the default master page is seattle.master, if you are using a custom master page, you should change the custom master page), then find the <meta http-equiv="X-UA-Compatible" content="IE=10"/> and change it.

赞:

谢谢

温迪


这篇关于SharePoint 2013无法在IE8文档模式下显示Infopath表单,因为有两个html节,第一个html节要求浏览器使用IE10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆