Namespace Jelo.Environment
Information about the current browsing environment (browser type
and capabilities, screen size, browser viewport size, etc.)
Defined in: Jelo.Environment.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
<static> |
Jelo.Environment.isAir
True in an Adobe AIR environment.
|
<static> |
Jelo.Environment.isBot
True if the visitor appears to be a robot.
|
<static> |
Jelo.Environment.isFirefox
True if the browser identifies itself as Mozilla Firefox.
|
<static> |
Jelo.Environment.isGecko
True if the browser identifies itself as using the Gecko rendering
engine (includes Firefox and several "microbrew" browsers).
|
<static> |
Jelo.Environment.isGoogle
True if the visitor identifies itself as Google, including the
Googlebot search engine and various other Google robots (which may or
may not support JavaScript anyway.
|
<static> |
Jelo.Environment.isIE
True if the browser identifies itself as Microsoft Internet Explorer.
|
<static> |
Jelo.Environment.isIE7
True if the browser identifies itself as Microsoft Internet Explorer
7.
|
<static> |
Jelo.Environment.isIE8
True if the browser identifies itself as Microsoft Internet Explorer
8.
|
<static> |
Jelo.Environment.isIEOld
True if the browser identifies itself as Microsoft Internet Explorer
6 or older.
|
<static> |
Jelo.Environment.isLinux
True in a Linux environment.
|
<static> |
Jelo.Environment.isMac
True in an Apple Macintosh environment.
|
<static> |
Jelo.Environment.isModern
True in all modern browsers, indicates native AJAX support via
XMLHttpRequest.
|
<static> |
Jelo.Environment.isOpera
True if the browser identifies itself as Opera.
|
<static> |
Jelo.Environment.isSafari3
True if the browser appears to be Safari 3.x.
|
<static> |
Jelo.Environment.isSecure
True if the browser is in secure mode (HTTPS).
|
<static> |
Jelo.Environment.isStandard
True if the browser is standards-compliant.
|
<static> |
Jelo.Environment.isStrict
True if the browser is in strict mode.
|
<static> |
Jelo.Environment.isWebkit
True if the browser identifies itself as using the Webkit rendering
engine (includes Safari and Google Chrome).
|
<static> |
Jelo.Environment.isWindows
True in a Windows environment.
|
<static> |
Jelo.Environment.isYahoo
True if the visitor identifies itself as Yahoo, including the Yahoo
Slurp search engine (which may or may not support JavaScript
anyway.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
Jelo.Environment.getDocumentHeight()
|
<static> |
Jelo.Environment.getDocumentWidth()
|
<static> |
Jelo.Environment.getScreenHeight(full)
When "full" is true, returns the height of the physical display screen.
|
<static> |
Jelo.Environment.getScreenWidth(full)
When "full" is true, returns the width of the physical display screen.
|
<static> |
Jelo.Environment.getUA()
|
<static> |
Jelo.Environment.getViewHeight(full)
When "full" is true, shorthand for getDocumentHeight.
|
<static> |
Jelo.Environment.getViewportHeight()
|
<static> |
Jelo.Environment.getViewportWidth()
|
<static> |
Jelo.Environment.getViewWidth(full)
When "full" is true, shorthand for getDocumentWidth.
|
Field Detail
<static>
{Boolean}
Jelo.Environment.isAir
True in an Adobe AIR environment.
<static>
{Boolean}
Jelo.Environment.isBot
True if the visitor appears to be a robot. Not necessarily a good or
bad thing, nor does this imply support (or lack thereof) for any
particular JS or CSS feature.
<static>
{Boolean}
Jelo.Environment.isFirefox
True if the browser identifies itself as Mozilla Firefox.
<static>
{Boolean}
Jelo.Environment.isGecko
True if the browser identifies itself as using the Gecko rendering
engine (includes Firefox and several "microbrew" browsers).
<static>
{Boolean}
Jelo.Environment.isGoogle
True if the visitor identifies itself as Google, including the
Googlebot search engine and various other Google robots (which may or
may not support JavaScript anyway...).
<static>
{Boolean}
Jelo.Environment.isIE
True if the browser identifies itself as Microsoft Internet Explorer.
<static>
{Boolean}
Jelo.Environment.isIE7
True if the browser identifies itself as Microsoft Internet Explorer
7.
<static>
{Boolean}
Jelo.Environment.isIE8
True if the browser identifies itself as Microsoft Internet Explorer
8.
<static>
{Boolean}
Jelo.Environment.isIEOld
True if the browser identifies itself as Microsoft Internet Explorer
6 or older.
<static>
{Boolean}
Jelo.Environment.isLinux
True in a Linux environment.
<static>
{Boolean}
Jelo.Environment.isMac
True in an Apple Macintosh environment.
<static>
{Boolean}
Jelo.Environment.isModern
True in all modern browsers, indicates native AJAX support via
XMLHttpRequest. IE version 6 and older are known to be false,
nearly every other browser supports XMLHttpRequest natively.
<static>
{Boolean}
Jelo.Environment.isOpera
True if the browser identifies itself as Opera.
<static>
{Boolean}
Jelo.Environment.isSafari3
True if the browser appears to be Safari 3.x.
<static>
{Boolean}
Jelo.Environment.isSecure
True if the browser is in secure mode (HTTPS).
<static>
{Boolean}
Jelo.Environment.isStandard
True if the browser is standards-compliant. Note that actual
compliance depends on the page being viewed, this just determines
whether the browser can understand standards-compliant code.
- Deprecated:
- Replaced with {@link Jelo.Environment.isModern} in v1.05, you should use that instead.
<static>
{Boolean}
Jelo.Environment.isStrict
True if the browser is in strict mode.
<static>
{Boolean}
Jelo.Environment.isWebkit
True if the browser identifies itself as using the Webkit rendering
engine (includes Safari and Google Chrome).
<static>
{Boolean}
Jelo.Environment.isWindows
True in a Windows environment.
<static>
{Boolean}
Jelo.Environment.isYahoo
True if the visitor identifies itself as Yahoo, including the Yahoo
Slurp search engine (which may or may not support JavaScript
anyway...)
Method Detail
<static>
{Number}
Jelo.Environment.getDocumentHeight()
- Returns:
- {Number} The complete vertical size of the document, including scrollable content.
<static>
{Number}
Jelo.Environment.getDocumentWidth()
- Returns:
- {Number} The complete horizontal size of the document, including scrollable content.
<static>
{Number}
Jelo.Environment.getScreenHeight(full)
When "full" is true, returns the height of the physical display screen.
When "full" is false, returns the screen height minus the taskbar (if applicable).
- Parameters:
- {Boolean} full Optional
- Returns:
- {Number}
<static>
{Number}
Jelo.Environment.getScreenWidth(full)
When "full" is true, returns the width of the physical display screen.
When "full" is false, returns the screen width minus the taskbar (if applicable).
- Parameters:
- {Boolean} full Optional
- Returns:
- {Number}
<static>
{String}
Jelo.Environment.getUA()
- Returns:
- {String} The browser's User Agent.
<static>
{Number}
Jelo.Environment.getViewHeight(full)
When "full" is true, shorthand for getDocumentHeight.
When "full" is false, shorthand for getViewportHeight.
- Parameters:
- {Boolean} full Optional
- Returns:
- {Number} The Viewport or Document height.
<static>
{Number}
Jelo.Environment.getViewportHeight()
- Returns:
- {Number} The current height of the browser's visible area.
<static>
{Number}
Jelo.Environment.getViewportWidth()
- Returns:
- {Number} The current width of the browser's visible area.
<static>
{Number}
Jelo.Environment.getViewWidth(full)
When "full" is true, shorthand for getDocumentWidth.
When "full" is false, shorthand for getViewportWidth.
- Parameters:
- {Boolean} full Optional
- Returns:
- {Number}