Working with RADIUS attributes
Public access interface ASP functions and variables
15-75
Public access interface ASP functions and
variables
The public access interface Web pages use a number of ASP functions to perform specific
tasks. These ASP functions are written in embedded Javascript, which is a limited version of
Javascript running on the integrated Web server.
Also, a number of ASP variables are defined that can be used to store and retrieve
configuration and user settings. There are two types of variables:
ASP variables: The values of these variables must be loaded before they can be used by
calling the appropriate ASP function. Values are only persistent per page. Therefore they
must be loaded separately on each page before use.
Session variables: Session variables are persistent across all public access pages.
Javascript syntax
The following syntax is used by embedded Javascript code.
Syntax Description
Equality operators == Equal to
!= Not equal to
> Greater than
>= Greater than or equal to
< Less than
<= Less than or equal to
Conditional operators && Conditional And
|| Conditional Or
Unary operator ! Not (Inverts the value of a
boolean value.)
String operator + Concatenates two strings.
Arithmetic operators + Addition.
- Subtraction.
/ Division.
* Multiplication.
( ) Priority of evaluation.
Control flow if (logical condition) {} else {} If then else statement.
for(start; until; steps) { } Looping.