我面臨着與我的ADF Web應用程序的兼容性問題。試圖添加元標記 - '<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />
',甚至嘗試注入Java腳本來壓制兼容性問題,但沒有任何反映。下面是Java腳本 -面對瀏覽器與IE-9的兼容性問題
`
<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>
`
添加meta標籤中.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
謝謝你的迴應florinmarcus,我面臨的IE版本的問題,並通過使用JDeveloper的幾個補丁,並通過添加以下上下文參數爲xml文件來解決。 <的context-param> oracle.adf.view.rich.HIDE_UNSUPPORTED_BROWSER_ALERTS IECompatibilityModes PARAM值> 的context-param> <的context-param> org.apache.myfaces.trinidad.Agent #OVERRIDE_IE_COMPATIBILITY_MODE true param-value> context-param> –
user3744303
2015-03-13 05:34:34