Internet explorer 8 X页与Internet Explorer 8的兼容性

Internet explorer 8 X页与Internet Explorer 8的兼容性,internet-explorer-8,xpages,Internet Explorer 8,Xpages,我有一个用X-Pages开发的应用程序,它可以很好地与除8之外的所有浏览器和所有版本的Internet Explorer配合使用。一旦用户试图访问应用程序,Internet Explorer 8就会抛出一个错误,提示“Internet Explore遇到问题,需要关闭。”我试图在xPage to的beforeRenderResponse事件中使用Julian Buss的以下代码,错误消失了,但每次部分或完全刷新时,我仍然会收到错误。这个问题有什么解决办法吗 // X-UA-Compatible:

我有一个用X-Pages开发的应用程序,它可以很好地与除8之外的所有浏览器和所有版本的Internet Explorer配合使用。一旦用户试图访问应用程序,Internet Explorer 8就会抛出一个错误,提示“Internet Explore遇到问题,需要关闭。”我试图在xPage to的beforeRenderResponse事件中使用Julian Buss的以下代码,错误消失了,但每次部分或完全刷新时,我仍然会收到错误。这个问题有什么解决办法吗

// X-UA-Compatible: IE=7
// X-UA-Compatible: IE=EmulateIE7
if (context.getUserAgent().isIE(8, 8)) {
 var exCon = facesContext.getExternalContext();
 var response = exCon.getResponse();
 response.setHeader("X-UA-Compatible", "IE=EmulateIE7");
}
支持网站的措辞有点含糊不清,但基本上说:“失去支持”。因此,您最好的选择是按照他们的建议升级到最新的IE版本(如果您必须坚持使用IE)

或者,如果您的客户对保持软件的最新性感到恐慌,您可以引入非常适合的,因为这也是支持的终点。它将在IE中处于休眠状态,直到您提供唤醒它的标题(您将在XPage中这样做)

除此之外:你必须为你的IE用户屏蔽你的应用程序。您还可以将以下代码添加到控件:

    <!--[if lt IE 10]>
      <div style='border: 1px solid #F7941D; background: #FEEFDA; text-align: center; clear: both; height: 75px; position: relative;'>
        <div style='position: absolute; right: 3px; top: 3px; font-family: courier new; font-weight: bold;'><a href='#' onclick='javascript:this.parentNode.parentNode.style.display="none"; return false;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-cornerx.jpg' style='border: none;' alt='Close this notice'/></a></div>
        <div style='width: 640px; margin: 0 auto; text-align: left; padding: 0; overflow: hidden; color: black;'>
          <div style='width: 75px; float: left;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-warning.jpg' alt='Warning!'/></div>
          <div style='width: 275px; float: left; font-family: Arial, sans-serif;'>
            <div style='font-size: 14px; font-weight: bold; margin-top: 12px;'>You are using an outdated browser</div>
            <div style='font-size: 12px; margin-top: 6px; line-height: 12px;'>For a better experience using this site, please upgrade to a modern web browser.</div>
          </div>
          <div style='width: 75px; float: left;'><a href='http://www.firefox.com' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-firefox.jpg' style='border: none;' alt='Get Firefox'/></a></div>
          <div style='width: 75px; float: left;'><a href='http://www.browserforthebetter.com/download.html' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-ie8.jpg' style='border: none;' alt='Get Internet Explorer 11'/></a></div>
          <div style='width: 73px; float: left;'><a href='http://www.apple.com/safari/download/' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-safari.jpg' style='border: none;' alt='Get Safari'/></a></div>
          <div style='float: left;'><a href='http://www.google.com/chrome' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-chrome.jpg' style='border: none;' alt='Get Google Chrome'/></a></div>
        </div>
      </div>
    <![endif]-->


希望有帮助

他们正在做的任何具体事情会导致它崩溃吗?我有一个应用程序在IE8上使用ExtLib值选取器时出现故障,但在XP或Windows7上安装IE8时,我无法重现故障。另外,它是IE8标准还是IE8兼容模式?如果启用了兼容模式,就没有办法阻止它,您只能更改文档模式(我最近在博客中提到了这一点)。恐怕我发现IE8在识别这类崩溃的原因方面非常糟糕。这不是XPages的具体问题。请查看以下内容: