|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--PTBrowserInfo
Static class containing information about the browser client.
Usage:
if(PTBrowserInfo.IS_SAFARI || PTBrowserInfo.MSIE_VERSION < 4) { ... }
Field Summary | |
<static> <final> Boolean |
IS_DOM
True if the browser client supports Document Object Model lookup methods |
<static> <final> Boolean |
IS_HTTPS
True if the current page was loaded using the HTTPS protocol. |
<static> <final> Boolean |
IS_MOZILLA
True if the browser client is part of the Mozilla project (for example, Firefox is a Mozilla browser). |
<static> <final> Boolean |
IS_MSIE
True if Microsoft Internet Explorer is the browser client. |
<static> <final> Boolean |
IS_MSIE_4
True if Microsoft Internet Explorer 4.x (or less) is the browser client. |
<static> <final> Boolean |
IS_MSIE_5
True if Microsoft Internet Explorer 5.0.x is the browser client. |
<static> <final> Boolean |
IS_MSIE_5_5
True if Microsoft Internet Explorer 5.5.x is the browser client. |
<static> <final> Boolean |
IS_MSIE_6
True if Microsoft Internet Explorer 6.0.x is the browser client. |
<static> <final> Boolean |
IS_NETSCAPE_4
True if Netscape 4.x (or less) is the browser client. |
<static> <final> Boolean |
IS_NETSCAPE_6
True if Netscape 6.x is the browser client. |
<static> <final> Boolean |
IS_NETSCAPE_7
True if Netscape 7.x is the browser client. |
<static> <final> Boolean |
IS_NETSCAPE_DOM
True if the browser uses the Netscape document object model. |
<static> <final> Boolean |
IS_NT4
True if the Operating System on the client is Microsoft Windows NT 4.0. |
<static> <final> Boolean |
IS_OPERA
True if Opera is the browser client |
<static> <final> Boolean |
IS_SAFARI
True if Macintosh Safari is the browser client. |
<static> <final> Boolean |
IS_XP_SP2
True if the Operating System on the client is Microsoft Windows XP (Service Pack 2). |
<static> <final> Number |
MSIE_VERSION
The version of the Internet Explorer browser being used; returns 0 if IE is not being used. |
<static> <final> Number |
NETSCAPE_VERSION
The version of the Netscape browser being used; returns 0 if Netscape is not being used. |
<static> <final> String |
USER_AGENT
The User-Agent String used to determine the browser and platform of the current browser client. |
<static> <final> Object |
VERSION
|
Constructor Summary | |
PTBrowserInfo
()
PTBrowserInfo static object constructor |
Field Detail |
<static> <final> Boolean IS_DOM
<static> <final> Boolean IS_HTTPS
<static> <final> Boolean IS_MOZILLA
<static> <final> Boolean IS_MSIE
<static> <final> Boolean IS_MSIE_4
<static> <final> Boolean IS_MSIE_5
<static> <final> Boolean IS_MSIE_5_5
<static> <final> Boolean IS_MSIE_6
<static> <final> Boolean IS_NETSCAPE_4
<static> <final> Boolean IS_NETSCAPE_6
<static> <final> Boolean IS_NETSCAPE_7
<static> <final> Boolean IS_NETSCAPE_DOM
<static> <final> Boolean IS_NT4
<static> <final> Boolean IS_OPERA
<static> <final> Boolean IS_SAFARI
<static> <final> Boolean IS_XP_SP2
<static> <final> Number MSIE_VERSION
<static> <final> Number NETSCAPE_VERSION
<static> <final> String USER_AGENT
<static> <final> Object VERSION
Constructor Detail |
PTBrowserInfo()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |