ActiveXEnabled Property

 

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:

 

See Also:

ActiveXControls Property

GetExtPropertiesEx Method

SetExtProperties Method

VBScriptEnabled Property