JavaCheckType Property (.NET)

 

Type: Integer

 

The JavaCheckType property can be used to delay loading of the applet BrowserHawk uses to test for Java and for some Java based tests. This applies to the JavaVendor, JavaVersion, Plugin_Javaver, OSArch, the extended property tests for OSName, OSVersion, and OSDetails, as well as the BrowserBitSize property (in some cases).

 

Delayed loading of the applet may be useful for edge cases where these Java based tests for a particular user or users are not able to return the expected results. It may also be useful if you are using a custom PageMessage for your "Please wait..." temporary page while testing for these Java based properties, allowing your PageMessage to show much more quickly. Note that this is an advanced setting. Outside of these cases, generally the JavaCheckType should be kept at its default of 0 unless you have a specific reason to change it.

 

Valid settings for this property are ExtendedOptions.JAVA_CHECK_TYPE_DIRECT_LOAD (default, do not use delayed loading) and ExtendedOptions.JAVA_CHECK_TYPE_DELAYED_LOAD (use delayed loading).

 

Note: If setting this property you must do so prior to calling the GetExtendedBrowser method.

 

C# Example:

<%

ExtendedOptions options = new ExtendedOptions();

options.AddProperties("JavaVersion");

options.JavaCheckType = ExtendedOptions.JAVA_CHECK_TYPE_DELAYED_LOAD;

ExtendedBrowserObj extBrow = BrowserObj.GetExtendedBrowser(options);

%>

<html>

JavaVersion: <% Response.Write(extBrow.JavaVersion); %>

</html>

 

 

See Also:

Detecting Extended Properties

Additional Steps Required for Java Based Properties

PageMessage Property