Plugin_Custom Property (.NET)

 

Type: Integer

 

Returns an integer indicating whether the visitor’s browser has the plug-in specified by the PluginCustomID property installed.

 

This allows you to check whether your custom plug-in, or a plug-in not natively detected by BrowserHawk, is installed.

 

The returned value is one of the following:

0: The plug-in is not installed

1: The plug-in is installed

-1: It is not possible to detect if the plug-in is installed

 

Tip: BrowserHawk can interface with external browser sniffing tests you may wish to write, or any JavaScript code execution for that matter.  See the SetJSEval method.

 

Note: Use of this property requires the Enterprise Edition of BrowserHawk.

 

C# Example:

<%

ExtendedOptions options = new ExtendedOptions();

options.AddProperties("Plugin_Custom");

options.PluginCustomID = "IVIEWER.IViewerCtrl.1,Executive Viewer";

ExtendedBrowserObj extBrow = BrowserObj.GetExtendedBrowser(options);

%>

<html>

Custom plugin (checking for Executive Viewer plugin in this test): <% Response.Write(extBrow.Plugin_Custom); %>

</html>

 

See Also:

PluginCustomID Property (.NET)

SetJSEval Property (.NET)

GetJSEval Property (.NET)