Object: sapphire.browser |
Description
Determines the client browser.
File
WEB-CORE\scripts\sapphirecore.js
Properties
| Property | Type | Description | |||
| id | String | IE6, IE7, FF, or empty string.
| |||
| supported | Boolean | Determines if the browser is supported by LabVantage. | |||
| osId | String | Operating system. | |||
| compat | String | Compatibility mode string. | |||
| compatMode | Boolean | True if the browser (IE8 or IE9) is in compatibility mode. | |||
| compatVersion | Float | Version in which the compatibility mode is running (such as 7.0 or 8.0). | |||
| version | Float | Version of the browser (if IE8 is in compatibility mode for IE7, this will be 8.0 and the compatVersion will be 7.0). | |||
| mozillaVersion | Float | Version of the Mozilla engine. | |||
| webkitVersion | Float | Version of the Apple web kit. | |||
| mozilla | Boolean | True if the browser is based on Mozilla. | |||
| webkit | Boolean | True if the browser is based on the Apple web kit. | |||
| firefox | Boolean | True if the browser is Firefox. | |||
| chrome | Boolean | True if the browser is Chrome. | |||
| android | Boolean | True if the browser is Android (default android browser). | |||
| skyfire | Boolean | True if the browser is Skyfire (mobile browsers). | |||
| safari | Boolean | True if the browser is Safari. | |||
| blackberry | Boolean | True if the browser is the default Blackberry browser. | |||
| opera | Boolean | True if the browser is Opera. | |||
| ie | Boolean | True if the browser is Internet Explorer. | |||
| mobile | Boolean | True if the OS and Browser are on a mobile platform (iPhone, iPad, Android, Nokia, Blackberry). | |||
| supported | Boolean | True if the current browser and OS are supported (only IE on Windows supported for R5.2). | |||
| gc | Boolean | True if garbage collection routines in JavaScript are required. Only IE really needs these. |
determine |
| DEPRECATED | Deprecated in R5.2 (DM0503). This is now generated server-side. |
Functionality
Determines the browser in use.
Returns
None.