如何检测安装在客户端上从ASP .NET网站上的Java运行时? [英] How can I detect the Java runtime installed on a client from an ASP .NET website?

查看:132
本文介绍了如何检测安装在客户端上从ASP .NET网站上的Java运行时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP .NET网站承载的Java小程序。 Java小程序需要Java运行时的1.6版更新11。

I have an ASP .NET website that hosts a Java applet. The Java applet requires version 1.6 Update 11 of the Java runtime.

我怎样才能检测到客户端有相应的运行时安装的,这样,如果他们不这样做,我可以显示一条提示消息?

How can I detect that a client has the appropriate runtime installed so that I can display an informative message if they do not?

谢谢,

卡尔。

编辑:解决方案必须是独立的平台。

The solution must be platform independant.

推荐答案

本页面介绍如何并列出了一些插件,可以让你的Java检测用JavaScript:<一href=\"http://www.pinlady.net/PluginDetect/JavaDetect.htm\">http://www.pinlady.net/PluginDetect/JavaDetect.htm

This page describes how to and lists some plugins that will allow you to detect Java with JavaScript: http://www.pinlady.net/PluginDetect/JavaDetect.htm

除此之外,试试这个片段,以及:

Other than that, try out this snippet as well:

if (navigator.javaEnabled()) {
    //Java is enabled
}

这篇关于如何检测安装在客户端上从ASP .NET网站上的Java运行时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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