Use the AJAXForm module to setup basic AJAX form behavior, such as:

  • Showing loading, success, and error states
  • Constructing the URL
  • Wrangling form data into an API-friendly format
  • Rendering results

Examples

Basic

Send a response!

Please Wait...
Error!
Success!

Show Results

Note the use of the Validation module to perform front-end form validation.

Get User By ID

Please Wait...
Sorry, there are no users with that ID.