HP (Hewlett-Packard) MSM7XX Switch User Manual


 
Working with public access attributes
Public access interface ASP functions and variables
username: Username to use for authentication. Applies to access_type = login.
valid_fields: Name of the form fields to do validation upon.
HtmlLogout
This form performs a logout operation.
Field
success_url: The URL to which the user is sent if the logout is successful.
Form errors
When the Web server validates a form, it builds a list of all fields that have validation errors.
The following functions can be used to scan this list and retrieve error information for each
field.
GetLastFormSubmitFirstField()
Returns the name of the first field (as a string) that generated a validation error. If no error
occurred for any fields in the form, an empty string is returned.
Example
var firstField = GetLastFormSubmitFirstField();
GetLastFormSubmitNextField(field_name)
Returns the name of the next field after the specified field_name that generated an error.
This enables you to move through the field error list one field at a time.
The field name is returned as a string. If no error occurred for any other fields in the form, an
empty string is returned.
Example
var nextField = GetLastFormSubmitNextField("previousField");
LoadFormFieldError(field_name)
This function the following ASP variables with details about the errors caused by the
specified field_name.
ASP variables
field_error: Numeric error value.
0 - No error found.
1 - The field required a value but was empty.
2 - The field contained a value which exceeds the maximum supported length.
3 - The field contained a value which is invalid (only specific values were allowed).
9-74