Hi dev'rs
Maybe I can get someone started to work on this by preparing some search
work on how to get java detection working. I hope this gets someone
started on creating a reasonably reliable javascript that returns true
or false to the question whether Javascript is needed or not. Better
safe than sorry, so if Java is not detected with any certainty, return
false (i.e. no Java installed).
Repeatedly I came accross this function, navigator.javaEnabled() [1],
but it only says whether Java is enabled yes or no; you can have a
situation in which there is no Java, but still the browser has Java
applets in an enabled state. Not at all valuable therefore for our
purpose. This is being acknowledged in this post [2], which refers to a
technique based on LiveConnect [3], however this technique may not be
future proof, see the notice on the Mozilla page [3].
Another solution, which is slow, tries to load an applet first [4]. It
seems straightforward, but not very fast, and would like to see it in
practice, given the first comment on the technique on that same page.
There may be some info on the Sun Java dev forums [e.g. 5].
This website [6] explains a bit, but is part of a commercial product,
not sure whether we can use/copy some of this, but at least the
instructions may be valuable if you are looking for a general approach
to tackle the detection problem. An Oreilly page [7] refers to some of
the functions that are also used in 5, but maybe of interest. Thing is
that this page is quite dated (2001).
Good luck & thanks in advance!
g.,
Maarten
[1] e.g.:
http://www.webdeveloper.com/forum/showpost.php?p=300431&postcount=4
[2] http://lists.evolt.org/pipermail/javascript/2007-September/012412.html
[3] http://developer.mozilla.org/en/docs/LiveConnect
[4]
http://www.hiteshagrawal.com/javascript/crossbrowser-java-plugin-detection-using-javascript
[5] http://forum.java.sun.com/thread.jspa?threadID=168544
[6] http://www.cyscape.com/products/bhawk/workshop/detectjava.aspx
[7]
http://www.oreillynet.com/pub/a/javascript/2001/07/20/plugin_detection.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]