Type: String
OSArch returns information about the type of hardware architecture in use on the visitor's machine. Possible return values include "x86", "x86_64", "ppc", "powerpc", "i386", "mips", and "sparc".
Note: You must call the GetExtPropertiesEx method before checking the value of this property. This property requires the Enterprise Edition of BrowserHawk.
Example:
<% set bhObj = Server.CreateObject("cyScape.browserObj")
bhObj.SetExtProperties "OSArch"
bhObj.GetExtPropertiesEx
%>
<html>OSArch is:
<%
if bhObj.OSArch = -1 OR bhObj.OSArch = -2 then
PropVal = "Not detectable"
else
Propval = bhObj.OSArch
end if
response.write PropVal
%>
</html>
Special notes for this property:
The visitor's browser must have Java installed and enabled to use this property. In the event they do not, a string value of "-1" or "-2" is returned, depending on various factors.
For browsers other than Internet Explorer on Windows, a string value of "-3" is returned to indicated that no Java plug-in is installed, which is required to detect this property.
The possible returned values are not standardized. For instance an Intel system running Windows XP may return "x64", whereas Linux running on the same hardware may return "i386". Mac OS X and higher returns "ppc". Versions of Mac OS prior to X return "PowerPC". See Detecting Operating System Details for more details on possible return results as it relates to what may be returned by operating systems.
This property is not available on Firefox or Mozilla versions prior to 1.0, Safari versions prior to 1.2, Internet Explorer on Macintosh, Netscape versions prior to 4.0, or Opera versions prior to 7.0. In these cases this property will return an empty string.
If the user’s JavaScript is disabled this property will not be available.
See Also:
Additional Steps Required for Java based properties