BrowserInfo
(→Public functions) |
(→Public functions) |
||
Line 74: | Line 74: | ||
Returns true if [http://www.w3.org/TR/XMLHttpRequest2/ XMLHttpRequest Level 2] capability is available. Required for [http://en.wikipedia.org/wiki/Cross-Origin_Resource_Sharing cross-origin connections]. |
Returns true if [http://www.w3.org/TR/XMLHttpRequest2/ XMLHttpRequest Level 2] capability is available. Required for [http://en.wikipedia.org/wiki/Cross-Origin_Resource_Sharing cross-origin connections]. |
||
+ | |||
+ | <div class="class_function_definition"> |
||
+ | '''html5localStorage''' () : Bool |
||
+ | </div> |
||
+ | |||
+ | Returns true if Local Storage capability is available. |
||
+ | |||
+ | <div class="class_function_definition"> |
||
+ | '''html5webWorkers''' () : Bool |
||
+ | </div> |
||
+ | |||
+ | Returns true if Web Workers capability is available. |
||
+ | |||
+ | <div class="class_function_definition"> |
||
+ | '''html5webSockets''' () : Bool |
||
+ | </div> |
||
+ | |||
+ | Returns true if Web Sockets capability is available. |
Latest revision as of 11:11, 12 August 2011
class BrowserInfo
- web2grid
- web2grid.core
- web2grid.core.info
- web2grid.core.info.BrowserInfo
- web2grid.core.info
- web2grid.core
[edit] Class overview
BrowserInfo provides formatted data about the browser the framework is actually running in.
[edit] Public functions
browserVendor () : String
Returns the vendor of the browser. Checks for Opera Software, Microsoft, Google and Mozilla.
browserName () : String
Returns the name of the browser. Possible return values are Opera, Internet Explorer, Chrome and Firefox.
browserFullVersion () : String
Returns the full version of the browser.
browserMajorVersion () : Int
Returns the major version of the browser. If the browser version is 10.2 this function will return 10.
osPlatform () : String
Returns the platform name of the operation system. Possible return values are Win, Linux and Mac.
osName () : String
Returns the name of the operation system. Possible return values are Windows 7, Windows Vista, Windows XP, Windows, Linux and Apple.
flashInstalled () : Bool
Returns true if Flash is available for the current browser.
flashFullVersion () : String
Returns the full version of Flash. Returns null if Flash is not present.
flashMajorVersion () : Int
Returns the major version of Flash. Returns null if Flash is not present.
html5xmlHttpRequestLevel2 () : Bool
Returns true if XMLHttpRequest Level 2 capability is available. Required for cross-origin connections.
html5localStorage () : Bool
Returns true if Local Storage capability is available.
html5webWorkers () : Bool
Returns true if Web Workers capability is available.
html5webSockets () : Bool
Returns true if Web Sockets capability is available.