Provided below is an explanation on how to use Web pages to determine whether JBK Plugin is installed on a client machine.
Using VBScript or JavaScript, you can determine the version number of the JBK Plugin instance on the client machine.
As a result, if the latest version of JBK Plugin is not installed on the client machine, the user of the client machine can be redirected to a Web page prompting download of the installer, when the user opens the relevant Web page in a Web browser.
The following sample script determines whether JBK Plugin is installed on the client machine:
<HTML> <HEAD> <TITLE>JBK Plugin Installation Checking Page</TITLE> <!-- Script for Internet Explorer --> <SCRIPT LANGUAGE="VBScript"> <!-- ' Latest JBK Plugin version number Const PLG_REQUIRED_VERSION = 9.01 ' URL of the installer Web page Const PLG_INSTALL_URL = "http://foo.fujitsu.com/index.html" Dim CurrentVersion CurrentVersion = 0.0 ' Get the version number of the JBK Plugin instance that is installed. ' If JBK Plugin is not installed, GetPluginVersion() returns an error, ' but because "On Error Resume Next" is specified, processing ' continues, with CurrentVersion remaining 0.0. On Error Resume Next CurrentVersion = GetPluginVersion() ' If the latest JBK Plugin version is not installed: If CurrentVersion < PLG_REQUIRED_VERSION Then ' The user is asked about being redirected to the Web page that explains ' the installation procedure. Dim Msg1, Msg2 Msg1 = "You need to install the latest JBK Plugin version." Msg2 = "Do you want to go to the Web page explaining the installation procedure?" Dim ok ok = MsgBox (Msg1 + Chr(13) + Msg2, vbOKCancel) ' Go to the Web page explaining the installation procedure. If ok = vbOK Then document.location = PLG_INSTALL_URL End If End If ' ' This function acquires the version number of the installed JBK Plugin version. ' Function GetPluginVersion Const PLG_NAME = "F5CXWPIE.JBKPluginCtrl.1" Dim Plugin Set Plugin = CreateObject(PLG_NAME) GetPluginVersion = Plugin.version End Function --> </SCRIPT> </HEAD> <BODY> JBK Plugin installation checking </BODY> </HTML> |
If JBK Plugin is not installed on the client machine or the version of the installed JBK Plugin is older than 9.01, a message box is displayed to prompt the user to go to the installer Web page.
It is also possible to use JavaScript although VBScript is used in the example.
For details on VBScript or JavaScript, refer to the pertinent documentation.
The following method is used in the script code to determine the JBK Plugin version number:
In Explorer, right-click on (JBK Plugin installation folder)\bin\f5cxwpie.ocx.
A menu is displayed. Select [Properties]
The f5cxwpie.ocx properties are displayed. Select the [Version] tab.
Select [Product Version] in the [Item name] area.
The VL notation is displayed in the [Value] area.
The version number of the JBK Plugin can be calculated from this VL notation by the following calculating formula:
(Version number) = (V) + ((L) / 1000) |
*indicates : (V) - Version, (L) - Level.
Please replace it with V9.2L00 for V9.2.0. The version number becomes 9.2+(0/1000)=9.2 .
Please replace it with V11.0L00 for V11.0. The version number becomes 11.0+(0/1000)=11.0 .
SCRIPT elements in HTML facilitates use of the same script in multiple HTML files.
<SCRIPT LANGUAGE="VBSCript" SRC="xxx.js"> |
For details on SCRIPT elements, refer to the relevant HTML documentation.
Note
If a tag indicating use of JBK Plugin (<OBJECT> or <EMBED>) is written between <BODY> and </BODY> and JBK Plugin is installed on the client machine, JBK Plugin becomes active regardless of the result of the version check by the script. Write this script in a Web page that does not use any applet.