IE-9面临浏览器兼容性问题

Facing Browser Compatibility issue with IE-9

本文关键字:兼容性 问题 浏览器 IE-9      更新时间:2024-04-29

我的ADF web应用程序面临兼容性问题。尝试添加元标记"<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />",甚至尝试注入java脚本来抑制兼容性问题,但没有任何反映。下面是java脚本-

`

<af:resource type="javascript">
var meta = document.createElement('meta');
meta.setAttribute('http-equiv', 'X-UA-Compatible');
meta.setAttribute('content', 'IE=Edge');
document.getElementsByTagName('head')[0].appendChild(meta);
</af:resource>

`

在.jspx页面中添加元标记如下-

1)'

<af:document>
 <f:facet name="metaContainer">
  <f:verbatim>
   <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8;IE=7;IE=EDGE"/>
  </f:verbatim>
 </f:facet>
-----
<f:facet>
----
----
</f:facet>
</af:document>

'

2)'

<af:document>    
   <f:facet name="metaContainer">        
      <af:group id="metaContainer"> 
           <trh:meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7;      IE=EDGE"/>
      </af:group>        
   </f:facet>
</af:document>

'

None of the above approaches are working with the application, Kindly help me out with your suggestions.
 Thanks in advance

最好知道您到底面临什么样的兼容性问题,IE版本、Jdeveloper版本等。

但是,作为一个疯狂的猜测,我建议这个博客:http://jonasdegraaff.blogspot.co.uk/2013/11/how-to-run-your-adf-111x-application.html

上述问题可以通过为Jdeveloper使用一些补丁并将以下上下文参数添加到xml文件中来解决。

<context-param> 
  <paramname>oracle.adf.view.rich.HIDE_UNSUPPORTED_BROWSER_ALERTS</paramname> 
  <param-value>IECompatibilityModes</param-value>
  </context-param> 
  <context-param>      <paramname>org.apache.myfaces.trinidad.Agent#OVERRIDE_IE_COMPATIBILITY_MODE<pa‌​ram-name> 
  <param-value>true</param-value> 
  </context-param>