HP (Hewlett-Packard) MSM7XX Switch User Manual


 
Working with public access attributes
Public access interface ASP functions and variables
ConditionalDisplay(condition, state)
This function is used to dynamically control execution of a block of code based on the value
of a logical expression. An effective use for this function is to control blocks of display code,
for certain features for example, that need to be turned on/off depending on user selections.
Parameters
Condition: A logical embedded Javascript expression. If the expression is true, all
content between the Begin and End function calls is executed.
State: Indicates if this function marks the beginning or end of the block of code.
Begin: Marks the beginning of the code block.
End: Marks the end of the code block.
Example
<% ConditionalDisplay(client_state == 1, "begin"); %>
<p> Welcome to the wireless network.</p>
<% ConditionalDisplay(client_state == 1, "end"); %>
GetUserName()
Returns the username for the current user.
GetAuthenticationErrorMessage()
Reserved for use by fail.asp to display error messages for certain specific conditions. Do not
use this function on other pages. Instead, use LoadFormFieldError() or GetSessionVar
with the variable last_login_error.
IncludeAsp(filename)
Pauses ASP processing in the current file and continue with the specified ASP filename.
Example
IncludeAsp("file.asp");
SetSessionRefreshInterval(sec)
Specifies the refresh interval for the session page in seconds.
write(string)
Writes the specified string to the browser.
Example
write("<p>You are connected.</p>");
LoadAccessInformation()
This function initializes a set of variables that provide information on the site access options
configured on the Service Controller >> Public access > Web content page.
9-87