title = "JavaScript Requests | Snowboard" url = "/snowboard/js-requests" layout = "snowboard" == 'AJAX Request was successful!', ]; } function onFormSubmission() { if (empty(post('name'))) { return [ '#form-submission-response' => '
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.
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.
This is a test to do an AJAX request that throws an exception. It should show a Flash error message.
This is a test to do an AJAX request that sends a Flash response back of differing types.
This is a test to do an AJAX request that appends or prepends content as opposed to replacing the content of the targeted element.