Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think it is naive to assume that someone would have JS disabled but Java installed &amp; enabled.</p> <ul> <li>JS comes with the browser, but Java does not.</li> <li>JS is enabled by default, and has to be explicitly disabled.</li> <li>Many sites today either rely on JS, or give a much slicker user experience when JS is enabled.</li> <li>The <a href="http://download.oracle.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html" rel="nofollow">deployJava.js</a> is the latest strategy offered by Sun/Oracle for checking that a browser has a specified minimum version of Java before running an applet or including a launch link for JWS applications. If 90% of deployers of applets in the last 2-3 years use the script, what do you think the chances are of seeing Java installed and enabled in those browsers where JS is disabled?</li> </ul> <p>Sun's former way of ensuring an applet had a necessary version of the plug-in was using HTMLConverter, which produced the nested <code>OBJECT</code>/<code>EMBED</code> element so hated by validation services (and any self respecting web developer). This invalid HTML used no JS or Java to do what it did, it all relied on HTML &amp; the browser/user's ability and willingness to act on the said elements.</p> <p>However I do not recommend using that approach, I think deployJava.js is a better way to achieve it.</p> <p>If you are truly insistent on making every attempt to determine the user's Java, and do not mind 'breaking the back button', there are other techniques that can be used. E.G. have a series of pages.</p> <ol> <li>The first page has a meta-refresh redirect to <code>nojs.html</code> set at NN seconds and uses JS to redirect to <code>hasjs.html</code> immediately.</li> <li>The <code>hasjs.html</code> tests for Java: <ol> <li><a href="http://www.rgagnon.com/javadetails/java-0178.html" rel="nofollow">Detect if Java is enabled</a></li> <li>Check Java version using something along the lines of <code>javascript:alert(java.lang.System.getProperty('java.version'))</code>. It works in the address bar of FF to pop a dialog that reports <code>1.6.0_24</code> on this box.</li> <li>(Finally) to determine that the applet itself is active (as opposed to crashed/refused at run-time), see <a href="http://www.rgagnon.com/javadetails/java-0176.html" rel="nofollow">Detect if an Applet is ready</a>.</li> </ol></li> </ol> <p>So as can be seen, JS will not only be able to check if Java is enabled, but can also check the version &amp; that any specific applet has loaded successfully.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload