southprojects DHTML Form Widget - AJAX Server Response

AJAX Server Response

- This demo uses the winxp theme.
- This form uses the southprojects Transport module to communicate with the server without refreshing the page.
- With the southprojects Transport (AJAX,) your form automatically performs both client-side and server-side validation.
- Here are the Client/Server rules. Note that this example will only work on the southprojects 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.
  1. 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.
  2. Checks that the two passwords are identical. This could, of course, be done as a client-side check, but this demo illustrates the handling of multiple server-side validation errors.
- On success, the form calls a developer-defined function. In this form, an alert reports success.
- On failure, the form displays an error message.
- After you finish typing login name - browser would check if such login is available.
  To control this use following parameters:
  1. spformValidate - url where to send request.
  2. spformValidateMethod - which HTTP method to use (GET, POST etc). The default is GET.
  3. spformValidateParam - how to name the parameter. The default is the to field name.
  4. spformValidateQuery - string that will be added to the request query.
  Example: class='spformValidate="validate.php" spformValidateMethod=GET spformValidateParam="my_var" spformValidateQuery="ajax_check=true"' will be transformed to validate.php?ajax_check=true&my_var=<CURRENT_FIELD_VALUE>
- To see debug information about communication between browser and server set "ajaxDebugFunc" config option. If given - this function will be used to display debug information about AJAX requests. Function signature consists of one argument - string message to display.

Personal information Login Name
Password
Password Again
Email Address