Redirection

The Redirection component sends the user to another URL. It is used in conjunction with the browser component to send users to different pages dependent on which browser they are using, or dependent on their age, or their preferences, or if the site has moved somewhere else.

Properties

name

DisplayName - Name
Description - Internal Name of Component in HTML page.
Type - String
DefaultValue - redirectionComponent1

timeDelay

DisplayName - Time Delay Before Redirect
Description - Enter the amount of time before a redirect occurs.
Type - NUMBER

nn3URL

DisplayName - Netscape Navigator 3 URL
Description - Enter the redirect URL for when Netscape Navigator version 3 is detected.
Type - String

ie3URL

DisplayName -Internet Explorer 3 URL
Description - Enter the redirect URL for when Internet Explorer version 3 is detected.
Type - String

nn4plusURL

DisplayName - Netscape Navigator 4+ URL
Description - Enter the redirect URL for when Netscape Navigator version 4 and above is detected
Type - String

ie4plusURL

DisplayName - Internet Explorer 4+ URL
Description - Enter the redirect URL for when Internet Explorer version 4 and above is detected.
Type - String

defaultURL

DisplayName - Default URL
Description - Enter the redirect URL for when a browser other than Netscape or IE is detected.
Type - String

Methods

void sendRedirect( void )
Function:sendRedirect
Input:None
Return:None
Description:This method will redirect the system based upon the browse that is detected.


integer getCurrentBrowserInt(void)

Function:getCurrentBrowserInt
Input:None
Return:Function returns integer value corresponding to the browser found listed asd followed:
Netscape Ver. 21
Netscape Ver. 32
Netscape Ver. 43
Netscape Ver. 54
Internet Explorer Ver. 35
Internet Explorer Ver. 46
Internet Explorer Ver. 57
All Other Browsers0
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.


Events

None

Other Information

Environment: Client