SimileAjax/Platform

From SIMILE Widgets
Jump to: navigation, search

Contents

SimileAjax.Platform

Using a browser's report of its User-Agent identity, this set of attributes is an array of flags for other methods to use in determining which browser is currently in use on what OS, aiding in deciding which features can be made available.

This is also where jQuery is set up and the SimileAjax version set.

Code: http://api.simile-widgets.org/ajax/2.2.1/scripts/platform.js

Migration Notes

jQuery discourages use of browser / operating system specifics in favor of specific feature support detection. The uses of these flags should be wholly replaced by the appropriate jQuery methods.

Back to SimileAjax.

Attributes

SimileAjax.Platform.os

isMac

isWin

isWin32

isUnix

SimileAjax.Platform.browser

isIE

isNetscape

isMozilla

isFirefox

isOpera

isSafari

majorVersion

minorVersion

Back to SimileAjax.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox