JavaFx Web无法与带有JRE7的Internet Explorer 11一起使用 [英] JavaFx web not working with Internet Explorer 11 with JRE7

查看:150
本文介绍了JavaFx Web无法与带有JRE7的Internet Explorer 11一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到我无法在Web IE 11上启动. 我知道IE11的useragent是Trident而不是MSIE.所以我想我总是得到通知来安装Java甚至是已经安装的Java的原因,但是我暂时找不到解决方案,因为伙计们通过更新webstart的deployJava.js并通过添加带有"msie"的"trident"来解决此问题...

I note that I cannot be launched on web IE 11 .. I know that the useragent for IE11 is Trident not MSIE . so I suppose that the reason why I got always notification to install java even its already installed .. but I cannot find temporarily solution for that as guys solve this issue by updating deployJava.js for webstart and by adding "trident" with "msie"...

请注意,只有Windows 7可以安装IE11或与Windows 8.1捆绑在一起的..您不能在Windows 8上安装IE11或将其更新为IE11.

just note that only windows 7 can install IE11 or its bundled with Windows 8.1 .. you cannot install IE11 or update it to IE11 on windows 8.

再次简单地说,我的问题是:

again and briefly my questions are :

1- JavaFX应用程序在哪里检测浏览器代理?

1- where JavaFX app detect browser agent?

2-是否可以修改负责此操作的程序包并包含jar进行投影?

2- is it possible to the modify package that is responsible for that and include jar to project ?

任何想法都欢迎..

推荐答案

我已经在dtjava.js中进行了一些修改,并使其可以在IE11中工作

I've made some modifications in dtjava.js and got it to work in IE11

就我而言,我仅使用dtjava.js来嵌入不基于JavaFX的applet,因此这些修改可能不足以使JavaFX应用程序运行.

In my case I'm using dtjava.js only for embedding an applet not based in JavaFX, so probably these modifications are not enough to make a JavaFX application run.

我从

ie = isDef(window.execScript);

ie = /trident/.test(u);

detectEnv()

if (isDef(d.addEventListener)) {
    d.addEventListener("DOMContentLoaded",
    invokeCallbacks, false);
}
if (ua.ie && ua.win) {

if (isDef(d.addEventListener)) {
    d.addEventListener("DOMContentLoaded",
    invokeCallbacks, false);
}
else if (isDef(d.attachEvent)) {

init()函数中.

当然,这些是改动过的,未经严格测试(仅Explorer 10、11以及最新的FIrefox和Chrome).跟随后果自负...

Of course, these are hacky changes not very tested (only Explorer 10, 11 and latest FIrefox and Chrome). Follow at your own risk...

这篇关于JavaFx Web无法与带有JRE7的Internet Explorer 11一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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