Browser

The Browser component has several methods that detect the browser type. It can return the name of the browser or an integer index of the browser, or it can fire an event based on the browser type. You can use the Browser component in conjunction with other components to redirect a user automatically to a specific page dependent on the user’s browser type.

Properties

Name - Unique name of the control. Must exactly match the name of the corresponding JavaScript object on the page.

Methods

integer getCurrentBrowserInt(void)

Function: getCurrentBrowserInt
Input: None
Return: Function returns integer value corresponding to the browser found listed asd followed:
Netscape Ver. 2 1
Netscape Ver. 3 2
Netscape Ver. 4 3
Netscape Ver. 5 4
Internet Explorer Ver. 3 5
Internet Explorer Ver. 4 6
Internet Explorer Ver. 5 7
All Other Browsers 0

Description: This function is used with client-side JavaScript to detect the brand and version of the user's browser. Detects only Netscape and Microsoft browsers. Returns 0 if a different brand is detected.



string getCurrentBrowserStr(void)

Function: getCurrentBrowserStr
Input: None
Return: Function returns string value corresponding to the browser found listed asd followed:
Netscape Ver. 2 "Netscape 2.0"
Netscape Ver. 3 "Netscape 3.0"
Netscape Ver. 4 "Netscape 4.0"
Netscape Ver. 5 "Netscape 5.0"
Internet Explorer Ver. 3 "MSIE 3.0"
Internet Explorer Ver. 4 "MSIE 4.0"
Internet Explorer Ver. 5 "MSIE 5.0"
All Other Browsers "Other"

Description: This function is used with client-side JavaScript to detect the brand and version of the user's browser. Detects only Netscape and Microsoft browsers. Returns "Other" if a different brand is detected.



void getCurrentBrowser(void)

Function: getCurrentBrowser
Input: None
Return: None.
Description: This function is used with client-side JavaScript to detect the brand and version of the user's browser. Detects only Netscape and Microsoft browsers.

Note: You must call getCurrentBrowser to generate one of the following events.



Events

void onIE(void)

Function: onIE
Input: None
Return: None.
Description: This event is executed for all versions of Internet Explorer



void onIE3(void)

Function: onIE3
Input: None
Return: None.
Description: This event is executed for only version 3 of Internet Explorer



void onIE4(void)

Function: onIE4
Input: None
Return: None.
Description: This event is executed for only version 4 of Internet Explorer



void onIE5(void)

Function: onIE5
Input: None
Return: None.
Description: This event is executed for only version 5 of Internet Explorer



void onNS(void)

Function: onNS
Input: None
Return: None.
Description: This event is executed for all versions of Internet Explorer



void onNS2(void)

Function: getCurrentBrowserInt
Input: None
Return: None.
Description: This event is executed for all versions of Internet Explorer



void onNS3(void)

Function: getCurrentBrowserInt
Input: None
Return: None.
Description: This event is executed for all versions of Internet Explorer



void onNS4(void)

Function: getCurrentBrowserInt
Input: None
Return: None.
Description: This event is executed for all versions of Internet Explorer



void onNS5(void)

Function: getCurrentBrowserInt
Input: None
Return: None.
Description: This event is executed for all versions of Internet Explorer



void onOther(void)

Function: getCurrentBrowserInt
Input: None
Return: None.
Description: This event is executed for all versions of Internet Explorer



Other Information

Environment: Client