Type: Boolean
Returns True if the browser has ActiveX controls enabled, or False if ActiveX controls are disabled.
Note: You must call the GetExtPropertiesEx method before checking the value of this property. This property requires the Enterprise Edition of BrowserHawk.
Tip: See the extproperties.asp example located in your BrowserHawk directory for detailed information and examples on using this property.
Example:
<% set bhObj = Server.CreateObject("cyScape.browserObj")
bhObj.SetExtProperties "ActiveXEnabled"
bhObj.GetExtPropertiesEx
%>
<html>ActiveX controls are:
<%
if bhObj.Browser = "IE" and LCase(left(bhObj.Platform, 3)) = "win" then
ax = bhObj.ActiveXEnabled
if ax = True then
PropVal = "Enabled"
Else
PropVal = "Disabled"
end if
else
PropVal = "Not applicable to this browser"
end if
response.write PropVal
%>
</html>
Special notes for this property:
ActiveX controls are only available with IE under the Windows 32 and 64-bit platforms. For all other browsers and platforms this property will always return False.
If the user’s JavaScript is disabled this property will not be available.
See Also: