Returns the version (as a string) of the installed plugin. PluginDetect.getVersion('Java', jarfile, verifyTagsArray): The PluginDetect commands for Java detection are as follows: Or, you can specify some combination thereof.Ī list of PluginDetect commands for Java detection Or, you can tell it to only use the applet methods. You can tell PluginDetect to only use the non-applet methods. And that way you know for sure whether the plugin is installed and enabled in your browser.įinally, PluginDetect allows some flexibility in how it accomplishes Java plugin detection. The applet methods force the Java plugin to run. The applet methods, on the other hand, are more reliable but relatively slow. The non-applet methods are very fast, which is why they are the first to be used. The tradeoffs between the 2 groups of methods are speed, reliability, and timing. If those methods are unable to find anything, then PluginDetect will try the applet methods. When doing Java detection, PluginDetect will usually try the non-applet methods first. An example of this method would be to insert an tag into the HTML document, run a Java applet (jar file or class file) in that tag, and then query the applet to get the installed Java version & vendor. The applet detection methods are those techniques that instantiate a Java applet(s) in the browser, and then query that applet to get the Java version and vendor. Examples of non-applet methods would be: searching thru the navigator.mimeTypes array for a Java mimetype, searching thru the ugins array for the Java plugin, trying to instantiate certain ActiveX objects associated with Java, and so on. These methods do not require the Java browser plugin to be active. The non-applet detection methods are those techniques that do not use any Java applets to do Java detection. These Java detection methods can be divided into 2 groups: a) the non-applet methods and b) the applet methods. PluginDetect uses a number of different methods when trying to detect Java in your browser. #Force enable java in firefox codeMake sure that the jarfile input argument in your Javascript code specifies the correct filename and path. ģ) write the Javascript code that calls the appropriate PluginDetect commands. #Force enable java in firefox downloadThe download page will allow you to customize the PluginDetect script to include whatever features you desire. The applet is used by PluginDetect in order to accomplish Java detection. In order to do Java detection, you will need several things:ġ) download the getJavaInfo.jar applet along with a few Java detection examples. Download PluginDetect and the jarfile here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |