检测客户端浏览器是否禁用/允许java applet? [英] Detecting if the client browser disabled/allows java applets ?

查看:202
本文介绍了检测客户端浏览器是否禁用/允许java applet?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的一个网页上有一个java小程序在我的电脑上工作正常。

但是我注意到在其他一些计算机上禁用了java小程序的运行。

我收到错误消息Classnotfound

如果允许java applet,有没有办法检测(使用cgi resp.javascript)?

我想要如果不允许applet,则显示简单的图片而不是applet窗格。


Wladimir

On one of my web pages there is an java applets which works fine on my computer.
However I noticed on some other computer that the run of java applets are disabled.
I got an error message "Classnotfound"
Is there a way to detect (with cgi resp. javascript) if java applets are allowed?
I would like to show a simple picture instead of the applet pane if applets are not allowed.

Wladimir

推荐答案

2004年11月1日星期一20:30:55 +0100,Wladimir Borsov写道:


这不是一个Java问题。
On Mon, 1 Nov 2004 20:30:55 +0100, Wladimir Borsov wrote:

This is not a Java question.
在我的一个网页上


URL?

..有一个java小程序在我的电脑上工作正常。
但是我注意到在其他一些计算机上禁用了java applet的运行。
我收到一条错误消息Classnotfound


没有这样的事情。我会做一些猜测。

这些机器是..

a)运行Win

b)使用IE作为浏览器

c)浏览器抛出''ClassNotFoundException'的

< http://www.physci.org/codes/javafaq.jsp#exact>

< ; http://www.physci.org/codes/javafaq.jsp#appletie>

d)此报告''1.1.4''

< http:/ /www.physci.org/pc/property.jsp?prop=java.version>

如果允许java applet,有没有办法检测(使用cgi resp.javascript)?


您可以使用JAvascript检测Java是否已启用,

但这不是问题所在。

我想要如果不允许applet,则显示一个简单的图片而不是applet窗格。
On one of my web pages
URL?
..there is an java applets which works fine on my computer.
However I noticed on some other computer that the run of java applets are disabled.
I got an error message "Classnotfound"
There is no such thing. I will make some guesses.
These machines are..
a) Running Win
b) Using IE as a browser
c) the browsers are throwing ''ClassNotFoundException''s
<http://www.physci.org/codes/javafaq.jsp#exact>
<http://www.physci.org/codes/javafaq.jsp#appletie>
d) this reports ''1.1.4''
<http://www.physci.org/pc/property.jsp?prop=java.version>
Is there a way to detect (with cgi resp. javascript) if java applets are allowed?
You can detect if Java is enabled using JAvascript,
but that is not the problem here.
I would like to show a simple picture instead of the applet pane if applets are not allowed.




是的,对于您认为的问题,以及

问题我怀疑你确实有。你需要修复两个

获得你想要的非魔法效果。两者都可以不用

Javascript。


-

Andrew Thompson
http://www.PhySci.org/codes/ Web& IT帮助
http://www.PhySci.org/ 开源软件套件
http://www.1point1C.org/ Science&技术
http://www.LensEscapes.com/ 图像逃脱mundane



Yes, to both the problem you thought you had, as well as the
problem I suspect you actually have. You need to fix both to
get the untlimate effect you want. Both can be done without
Javascript.

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane


On Tue,02 Nov 2004 05:01:07 GMT,Andrew Thompson写道:
On Tue, 02 Nov 2004 05:01:07 GMT, Andrew Thompson wrote:
这不是Java问题。




哎呀!试试,这不是一个* Javascript *问题。


-

Andrew Thompson
http://www.PhySci.org/codes/ Web& IT帮助
http://www.PhySci.org/ 开源软件套件
http://www.1point1C.org/ Science&技术
http://www.LensEscapes.com/ 图像逃脱mundane



Oops! Try, "This is not a *Javascript* question".

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane


Wladimir Borsov写道:
Wladimir Borsov wrote:
如果允许java小程序,有没有办法检测(使用cgi resp.javascript)如果不允许使用applet,我想显示一张简单的图片,而不是applet窗格。
Is there a way to detect (with cgi resp. javascript) if java applets are allowed?
I would like to show a simple picture instead of the applet pane if applets are not allowed.




< applet ...>

< param ...>

< param ...>

< param ...>

< p>此处的消息仅在Java被禁用时显示

支持。< / p>

< / applet>


-

Toby A Inkster BSc(荣誉)ARCS

联系我〜 http://tobyinkster.co.uk/contact



<applet ...>
<param ...>
<param ...>
<param ...>
<p>The message here will only be shown when Java is disabled or not
supported.</p>
</applet>

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact


这篇关于检测客户端浏览器是否禁用/允许java applet?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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