Type: String
Returns a string indicating the type of network connection the visitor is using. Possible return values are "lan", "modem", "offline" and an empty string if not detectable.
The ConnectionType property is limited to IE 5 and higher on Windows. You can test browsers other than IE and generally obtain more accurate results by using the Broadband property instead. See Detecting Connection Speed and Dialup Users for more information.
Note: You must call the GetExtPropertiesEx method before checking the value of this property. This property requires either the Professional or 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 "ConnectionType"
bhObj.GetExtPropertiesEx
%>
<html>Your connection type is:
<%
if bhObj.Browser = "IE" and bhObj.majorver >=5 and LCase(left(bhObj.Platform,3)) = "win" then
PropVal = bhObj.ConnectionType
else
PropVal = "Not available with your browser/platform"
end if
response.write PropVal %>
</html>
Special notes for this property:
This property is only available for IE 5 and higher on Windows
The return value of "offline" indicates the user has select Work Offline from the IE File menu. It is not possible for a site visitor to execute your web script when working in offline mode. However as the developer of the web site, you can experience this return value when testing your scripts locally and working in offline mode.
If the user’s JavaScript is disabled this property will not be available.
See Also: