繁体   English   中英

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

[英]Facing Browser Compatibility issue with IE-9

我的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> 

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM