- This form uses the larryband Transport to communicate with the server without refreshing the page.
- With the larryband Transport (AJAX) your form automatically performs both client side and server side validation.
- Here are the Client/Server rules:
-
Note: This example will only work on the larryband web server. It will not work in your local copy.
-
The fields are all required and the client side code enforces the data entry.
-
After the client side test is passed, the server performs the following checks.
-
Checks that the login name is available. In this example, the following names are not available: "Joe", "Jane", "George", "Judy". All other should pass the test.
-
Checks that the two passwords are identical. This could, of course, be done as a client side check, but we're demonstrating the handling
of multiple server side validation errors.
-
On success, the form calls a developer-defined function. In this form, an alert box displays success .
-
On failure, the form displays an error message.
|