527 lines
30 KiB
HTML
527 lines
30 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
|
<title>API: yahoo YAHOO.env.ua (YUI Library)</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
|
|
<link rel="stylesheet" type="text/css" href="assets/api.css" />
|
|
|
|
<script type="text/javascript" src="assets/api-js"></script>
|
|
<script type="text/javascript" src="assets/ac-js"></script>
|
|
</head>
|
|
|
|
<body id="yahoo-com">
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
<div id="hd">
|
|
<h1><a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a></h1>
|
|
<h3>YAHOO Global <span class="subtitle">2.9.0</span></h3>
|
|
<a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a>
|
|
> <a href="./module_yahoo.html" title="yahoo">yahoo</a>
|
|
> YAHOO.env.ua
|
|
|
|
<form onsubmit="return false">
|
|
<div id="propertysearch">
|
|
Search: <input autocomplete="off" id="searchinput" />
|
|
<div id="searchresults">
|
|
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
<form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
|
|
<fieldset>
|
|
<legend>Filters</legend>
|
|
<span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
|
|
<span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
|
|
<span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
|
|
</fieldset>
|
|
</form>
|
|
|
|
<h2>
|
|
|
|
|
|
<code>static</code>
|
|
|
|
Class <b property="yui:name">YAHOO.env.ua</b>
|
|
<span class="extends">
|
|
</span>
|
|
|
|
</h2>
|
|
<!-- class tree goes here -->
|
|
|
|
|
|
|
|
|
|
<div class="summary description" property="yui:description">
|
|
Do not fork for a browser if it can be avoided. Use feature detection when
|
|
you can. Use the user agent as a last resort. YAHOO.env.ua stores a version
|
|
number for the browser engine, 0 otherwise. This value may or may not map
|
|
to the version number of the browser using the engine. The value is
|
|
presented as a float so that it can easily be used for boolean evaluation
|
|
as well as for looking for a particular range of versions. Because of this,
|
|
some of the granularity of the version info may be lost (e.g., Gecko 1.8.0.9
|
|
reports 1.8).
|
|
</div>
|
|
|
|
|
|
<div rel="yui:properties" resource="#properties">
|
|
<div class="section field details">
|
|
<h3 id="properties">Properties</h3>
|
|
<div class="content">
|
|
<div class="" rel="yui:property" resource="#property_air">
|
|
<h4><a name="property_air" property="yui:name">air</a>
|
|
- <code><span property="yui:type">float</span></code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description" property="yui:description">
|
|
Adobe AIR version number or 0. Only populated if webkit is detected.
|
|
Example: 1.0
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="" rel="yui:property" resource="#property_android">
|
|
<h4><a name="property_android" property="yui:name">android</a>
|
|
- <code>static <span property="yui:type">float</span></code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description" property="yui:description">
|
|
Detects Googles Android OS version
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="" rel="yui:property" resource="#property_caja">
|
|
<h4><a name="property_caja" property="yui:name">caja</a>
|
|
- <code><span property="yui:type">float</span></code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description" property="yui:description">
|
|
Google Caja version number or 0.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="" rel="yui:property" resource="#property_chrome">
|
|
<h4><a name="property_chrome" property="yui:name">chrome</a>
|
|
- <code>static <span property="yui:type">float</span></code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description" property="yui:description">
|
|
Chrome will be detected as webkit, but this property will also
|
|
be populated with the Chrome version number
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="" rel="yui:property" resource="#property_gecko">
|
|
<h4><a name="property_gecko" property="yui:name">gecko</a>
|
|
- <code>static <span property="yui:type">float</span></code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description" property="yui:description">
|
|
Gecko engine revision number. Will evaluate to 1 if Gecko
|
|
is detected but the revision could not be found. Other browsers
|
|
will be 0. Example: 1.8
|
|
<pre>
|
|
Firefox 1.0.0.4: 1.7.8 <-- Reports 1.7
|
|
Firefox 1.5.0.9: 1.8.0.9 <-- 1.8
|
|
Firefox 2.0.0.3: 1.8.1.3 <-- 1.81
|
|
Firefox 3.0 <-- 1.9
|
|
Firefox 3.5 <-- 1.91
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="" rel="yui:property" resource="#property_ie">
|
|
<h4><a name="property_ie" property="yui:name">ie</a>
|
|
- <code>static <span property="yui:type">float</span></code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description" property="yui:description">
|
|
Internet Explorer version number or 0. Example: 6
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="" rel="yui:property" resource="#property_ios">
|
|
<h4><a name="property_ios" property="yui:name">ios</a>
|
|
- <code>static <span property="yui:type">float</span></code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description" property="yui:description">
|
|
General truthy check for iPad, iPhone or iPod
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="" rel="yui:property" resource="#property_ipad">
|
|
<h4><a name="property_ipad" property="yui:name">ipad</a>
|
|
- <code>static <span property="yui:type">float</span></code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description" property="yui:description">
|
|
Detects Apple iPad's OS version
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="" rel="yui:property" resource="#property_iphone">
|
|
<h4><a name="property_iphone" property="yui:name">iphone</a>
|
|
- <code>static <span property="yui:type">float</span></code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description" property="yui:description">
|
|
Detects Apple iPhone's OS version
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="" rel="yui:property" resource="#property_ipod">
|
|
<h4><a name="property_ipod" property="yui:name">ipod</a>
|
|
- <code>static <span property="yui:type">float</span></code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description" property="yui:description">
|
|
Detects Apples iPod's OS version
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="" rel="yui:property" resource="#property_mobile">
|
|
<h4><a name="property_mobile" property="yui:name">mobile</a>
|
|
- <code>static <span property="yui:type">string</span></code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description" property="yui:description">
|
|
The mobile property will be set to a string containing any relevant
|
|
user agent information when a modern mobile browser is detected.
|
|
Currently limited to Safari on the iPhone/iPod Touch, Nokia N-series
|
|
devices with the WebKit-based browser, and Opera Mini.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="" rel="yui:property" resource="#property_opera">
|
|
<h4><a name="property_opera" property="yui:name">opera</a>
|
|
- <code>static <span property="yui:type">float</span></code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description" property="yui:description">
|
|
Opera version number or 0. Example: 9.2
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="" rel="yui:property" resource="#property_os">
|
|
<h4><a name="property_os" property="yui:name">os</a>
|
|
- <code>static <span property="yui:type">string</span></code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description" property="yui:description">
|
|
The operating system. Currently only detecting windows or macintosh
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="" rel="yui:property" resource="#property_secure">
|
|
<h4><a name="property_secure" property="yui:name">secure</a>
|
|
- <code>static <span property="yui:type">boolean</span></code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description" property="yui:description">
|
|
Set to true if the page appears to be in SSL
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="" rel="yui:property" resource="#property_webkit">
|
|
<h4><a name="property_webkit" property="yui:name">webkit</a>
|
|
- <code>static <span property="yui:type">float</span></code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description" property="yui:description">
|
|
AppleWebKit version. KHTML browsers that are not WebKit browsers
|
|
will evaluate to 1, other browsers 0. Example: 418.9
|
|
<pre>
|
|
Safari 1.3.2 (312.6): 312.8.1 <-- Reports 312.8 -- currently the
|
|
latest available for Mac OSX 10.3.
|
|
Safari 2.0.2: 416 <-- hasOwnProperty introduced
|
|
Safari 2.0.4: 418 <-- preventDefault fixed
|
|
Safari 2.0.4 (419.3): 418.9.1 <-- One version of Safari may run
|
|
different versions of webkit
|
|
Safari 2.0.4 (419.3): 419 <-- Tiger installations that have been
|
|
updated, but not updated
|
|
to the latest patch.
|
|
Webkit 212 nightly: 522+ <-- Safari 3.0 precursor (with native
|
|
SVG and many major issues fixed).
|
|
Safari 3.0.4 (523.12) 523.12 <-- First Tiger release - automatic
|
|
update from 2.x via the 10.4.11 OS patch.
|
|
Webkit nightly 1/2008:525+ <-- Supports DOMContentLoaded event.
|
|
yahoo.com user agent hack removed.
|
|
</pre>
|
|
http://en.wikipedia.org/wiki/Safari_version_history
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
<div class="" rel="yui:property" resource="#property_webos">
|
|
<h4><a name="property_webos" property="yui:name">webos</a>
|
|
- <code>static <span property="yui:type">float</span></code>
|
|
</h4>
|
|
<div class="detail">
|
|
<div class="description" property="yui:description">
|
|
Detects Palms WebOS version
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div rel="yui:methods" resource="#methods">
|
|
<div class="section method details">
|
|
<h3 id="methods">Methods</h3>
|
|
<div class="content">
|
|
<div class="" rel="yui:method" resource="#method_parseUA">
|
|
<h4>
|
|
<a name="method_parseUA">parseUA</a></h4>
|
|
<div class="detail" >
|
|
<code>
|
|
|
|
static
|
|
|
|
void
|
|
<strong property="yui:name">parseUA</strong>
|
|
(
|
|
)
|
|
</code>
|
|
|
|
<div class="description" property="yui:description">
|
|
parses a user agent string (or looks for one in navigator to parse if
|
|
not supplied).
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div rel="yui:events" resource="#events">
|
|
|
|
|
|
</div>
|
|
|
|
<div rel="yui:attributes" resource="#configattributes">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
<div class="nav">
|
|
|
|
<div id="moduleList" class="module">
|
|
<h4>Modules</h4>
|
|
<ul class="content">
|
|
<li class=""><a href="module_animation.html" title="animation">animation</a></li>
|
|
<li class=""><a href="module_autocomplete.html" title="autocomplete">autocomplete</a></li>
|
|
<li class=""><a href="module_button.html" title="button">button</a></li>
|
|
<li class=""><a href="module_calendar.html" title="calendar">calendar</a></li>
|
|
<li class=""><a href="module_carousel.html" title="carousel">carousel</a></li>
|
|
<li class=""><a href="module_charts.html" title="charts">charts</a></li>
|
|
<li class=""><a href="module_colorpicker.html" title="colorpicker">colorpicker</a></li>
|
|
<li class=""><a href="module_connection.html" title="connection">connection</a></li>
|
|
<li class=""><a href="module_container.html" title="container">container</a></li>
|
|
<li class=""><a href="module_cookie.html" title="cookie">cookie</a></li>
|
|
<li class=""><a href="module_datasource.html" title="datasource">datasource</a></li>
|
|
<li class=""><a href="module_datatable.html" title="datatable">datatable</a></li>
|
|
<li class=""><a href="module_datemath.html" title="datemath">datemath</a></li>
|
|
<li class=""><a href="module_dom.html" title="dom">dom</a></li>
|
|
<li class=""><a href="module_dragdrop.html" title="dragdrop">dragdrop</a></li>
|
|
<li class=""><a href="module_editor.html" title="editor">editor</a></li>
|
|
<li class=""><a href="module_element.html" title="element">element</a></li>
|
|
<li class=""><a href="module_element-delegate.html" title="element-delegate">element-delegate</a></li>
|
|
<li class=""><a href="module_event.html" title="event">event</a></li>
|
|
<li class=""><a href="module_event-delegate.html" title="event-delegate">event-delegate</a></li>
|
|
<li class=""><a href="module_event-mouseenter.html" title="event-mouseenter">event-mouseenter</a></li>
|
|
<li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li>
|
|
<li class=""><a href="module_get.html" title="get">get</a></li>
|
|
<li class=""><a href="module_history.html" title="history">history</a></li>
|
|
<li class=""><a href="module_imagecropper.html" title="imagecropper">imagecropper</a></li>
|
|
<li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li>
|
|
<li class=""><a href="module_json.html" title="json">json</a></li>
|
|
<li class=""><a href="module_layout.html" title="layout">layout</a></li>
|
|
<li class=""><a href="module_logger.html" title="logger">logger</a></li>
|
|
<li class=""><a href="module_menu.html" title="menu">menu</a></li>
|
|
<li class=""><a href="module_paginator.html" title="paginator">paginator</a></li>
|
|
<li class=""><a href="module_profiler.html" title="profiler">profiler</a></li>
|
|
<li class=""><a href="module_profilerviewer.html" title="profilerviewer">profilerviewer</a></li>
|
|
<li class=""><a href="module_progressbar.html" title="progressbar">progressbar</a></li>
|
|
<li class=""><a href="module_resize.html" title="resize">resize</a></li>
|
|
<li class=""><a href="module_selector.html" title="selector">selector</a></li>
|
|
<li class=""><a href="module_slider.html" title="slider">slider</a></li>
|
|
<li class=""><a href="module_storage.html" title="Storage">Storage</a></li>
|
|
<li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li>
|
|
<li class=""><a href="module_swf.html" title="swf">swf</a></li>
|
|
<li class=""><a href="module_swfdetect.html" title="swfdetect">swfdetect</a></li>
|
|
<li class=""><a href="module_swfstore.html" title="swfstore">swfstore</a></li>
|
|
<li class=""><a href="module_tabview.html" title="tabview">tabview</a></li>
|
|
<li class=""><a href="module_treeview.html" title="treeview">treeview</a></li>
|
|
<li class=""><a href="module_uploader.html" title="uploader">uploader</a></li>
|
|
<li class="selected"><a href="module_yahoo.html" title="yahoo">yahoo</a></li>
|
|
<li class=""><a href="module_yuiloader.html" title="yuiloader">yuiloader</a></li>
|
|
<li class=""><a href="module_yuitest.html" title="yuitest">yuitest</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div id="classList" class="module">
|
|
<h4>Classes</h4>
|
|
<ul class="content">
|
|
<li class=""><a href="YAHOO.html" title="YAHOO">YAHOO</a></li>
|
|
<li class=""><a href="YAHOO.env.html" title="YAHOO.env">YAHOO.env</a></li>
|
|
<li class="selected"><a href="YAHOO.env.ua.html" title="YAHOO.env.ua">YAHOO.env.ua</a></li>
|
|
<li class=""><a href="YAHOO.lang.html" title="YAHOO.lang">YAHOO.lang</a></li>
|
|
<li class=""><a href="YAHOO_config.html" title="YAHOO_config">YAHOO_config</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div id="fileList" class="module">
|
|
<h4>Files</h4>
|
|
<ul class="content">
|
|
<li class=""><a href="Env.js.html" title="Env.js">Env.js</a></li>
|
|
<li class=""><a href="Lang.js.html" title="Lang.js">Lang.js</a></li>
|
|
<li class=""><a href="YAHOO.js.html" title="YAHOO.js">YAHOO.js</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div id="propertyList" class="module">
|
|
<h4>Properties</h4>
|
|
<ul class="content">
|
|
<li class=""><a href="#property_air" title="air">air</a></li>
|
|
<li class=""><a href="#property_android" title="android">android</a></li>
|
|
<li class=""><a href="#property_caja" title="caja">caja</a></li>
|
|
<li class=""><a href="#property_chrome" title="chrome">chrome</a></li>
|
|
<li class=""><a href="#property_gecko" title="gecko">gecko</a></li>
|
|
<li class=""><a href="#property_ie" title="ie">ie</a></li>
|
|
<li class=""><a href="#property_ios" title="ios">ios</a></li>
|
|
<li class=""><a href="#property_ipad" title="ipad">ipad</a></li>
|
|
<li class=""><a href="#property_iphone" title="iphone">iphone</a></li>
|
|
<li class=""><a href="#property_ipod" title="ipod">ipod</a></li>
|
|
<li class=""><a href="#property_mobile" title="mobile">mobile</a></li>
|
|
<li class=""><a href="#property_opera" title="opera">opera</a></li>
|
|
<li class=""><a href="#property_os" title="os">os</a></li>
|
|
<li class=""><a href="#property_secure" title="secure">secure</a></li>
|
|
<li class=""><a href="#property_webkit" title="webkit">webkit</a></li>
|
|
<li class=""><a href="#property_webos" title="webos">webos</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div id="methodsList" class="module">
|
|
<h4>Methods</h4>
|
|
<ul class="content">
|
|
<li class=""><a href="#method_parseUA" title="parseUA">parseUA</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="ft">
|
|
<hr />
|
|
Copyright © 2011 Yahoo! Inc. All rights reserved.
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
|
|
var ALL_YUI_PROPS = [{"access": "", "host": "YAHOO.env.ua", "name": "air", "url": "YAHOO.env.ua.html#property_air", "type": "property"}, {"access": "", "host": "YAHOO.env.ua", "name": "android", "url": "YAHOO.env.ua.html#property_android", "type": "property"}, {"access": "", "host": "YAHOO.env.ua", "name": "caja", "url": "YAHOO.env.ua.html#property_caja", "type": "property"}, {"access": "", "host": "YAHOO.env.ua", "name": "chrome", "url": "YAHOO.env.ua.html#property_chrome", "type": "property"}, {"access": "", "host": "YAHOO.env.ua", "name": "gecko", "url": "YAHOO.env.ua.html#property_gecko", "type": "property"}, {"access": "", "host": "YAHOO.env", "name": "getVersion", "url": "YAHOO.env.html#method_getVersion", "type": "method"}, {"access": "", "host": "YAHOO.env.ua", "name": "ie", "url": "YAHOO.env.ua.html#property_ie", "type": "property"}, {"access": "", "host": "YAHOO.env.ua", "name": "ios", "url": "YAHOO.env.ua.html#property_ios", "type": "property"}, {"access": "", "host": "YAHOO.env.ua", "name": "ipad", "url": "YAHOO.env.ua.html#property_ipad", "type": "property"}, {"access": "", "host": "YAHOO.env.ua", "name": "iphone", "url": "YAHOO.env.ua.html#property_iphone", "type": "property"}, {"access": "", "host": "YAHOO.env.ua", "name": "ipod", "url": "YAHOO.env.ua.html#property_ipod", "type": "property"}, {"access": "", "host": "YAHOO.env", "name": "listeners", "url": "YAHOO.env.html#property_listeners", "type": "property"}, {"access": "", "host": "YAHOO.env.ua", "name": "mobile", "url": "YAHOO.env.ua.html#property_mobile", "type": "property"}, {"access": "", "host": "YAHOO.env", "name": "modules", "url": "YAHOO.env.html#property_modules", "type": "property"}, {"access": "", "host": "YAHOO.env.ua", "name": "opera", "url": "YAHOO.env.ua.html#property_opera", "type": "property"}, {"access": "", "host": "YAHOO.env.ua", "name": "os", "url": "YAHOO.env.ua.html#property_os", "type": "property"}, {"access": "", "host": "YAHOO.env.ua", "name": "parseUA", "url": "YAHOO.env.ua.html#method_parseUA", "type": "method"}, {"access": "", "host": "YAHOO.env.ua", "name": "secure", "url": "YAHOO.env.ua.html#property_secure", "type": "property"}, {"access": "", "host": "YAHOO.env.ua", "name": "webkit", "url": "YAHOO.env.ua.html#property_webkit", "type": "property"}, {"access": "", "host": "YAHOO.env.ua", "name": "webos", "url": "YAHOO.env.ua.html#property_webos", "type": "property"}];
|
|
</script>
|
|
</body>
|
|
</html>
|