Detecting whether browser can load Java Applet successfully - Unexpected behaviour on Firefox

I have an ASP.NET page which loads a Java Applet. I am first checking that the client computer has the ability to run the applet (Java version etc) by giving the tag an ID of "AppletID" - then I call a function of this applet which always returns "true". So, the following line of code: var isRunning = document.getElementById('AppletID').appletRunning() will return "true" if the method "appletRunning" in the applet is called successfully (indicating that the client can load the applet correctly). This was always working until recently. However, lately, Firefox browsers give me an intermettent dialog box showing the "You do not have the required minimum version of Java..." message. (Other times it correctly detects that the applet can be loaded). The applet then proceeds to load correctly, but the dialog should not be shown in the first place. I wonder why this is happening - it possibly could be that document.getElementById('AppletID') is being null when it is checked, thus leading to the "catch" part of the "checkAppletRunning" method? IE is always OK and never returns this dialog box. Below is the code of the .aspx page. I would appreciate any help in this matter, Thanks in advance, Timothy

以上就是Detecting whether browser can load Java Applet successfully - Unexpected behaviour on Firefox的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏