AJAX

This is a example tagline

Simple request

This is a test to do a simple AJAX request on the click of a button and show a success message next to the button on completion.

Error response

This is a test to do an AJAX request that throws an exception. It should show a Flash error message.

Flash response

This is a test to do an AJAX request that sends a Flash response back of differing types.

Appended and prepended content

This is a test to do an AJAX request that appends or prepends content as opposed to replacing the content of the targeted element.

Test prepend
Prepended content
Test append
Appended content

Form submission

This is a test to make a form submission via AJAX and display the form contents on completion. The AJAX request is initiated from the Submit button.

Form validation

This is a test to do an AJAX request that triggers a form validation error if the "Name" field does not contain the word "success".

Single Validation Error

Shows only the first validation error (Docs)

Required, must contain only letters, spaces and dashes
Not required, must contain only letters, spaces and dashes
Required, must be an email
Not required, must be a URL

Multiple Validation Errors

Shows all validation errors within a dedicated error message container (Docs)

Required, must contain only letters, spaces and dashes
Not required, must contain only letters, spaces and dashes
Required, must be an email
Not required, must be a URL