AJAX Tests

Lazy Loading Content...
Content Will Go Here
Test Custom Selector
Test Data Object
Trigger Data String
Trigger Click Event
Trigger Custom Event
Trigger Aborted Event
Trigger Browser Event

Testing Polling Updates

Launch in... 548.97103658152 days, 26350.609755962 hours, 3162073.1707165 minutes, 379448780.48605 seconds


Testing Updates via Syntax

Content Will Go Here
Test Update Test Replace With Test Append Test Prepend

Testing Updates via Attributes

Content Will Append Here
Content Will Prepend Here
Content Will Replace Here
Test Update

Testing AJAX Partial

Test AJAX in Partial

Found the variable: No (159 + bar)

Test AJAX in Nested Partial

Found the variable: No


Test Contact Form

Test Component

Test Custom URL

Test External URL Test Query Data

Test Redirects

Test Redirect Test Redirect URL Test Redirect Back Button Test Redirect Back Button (No AJAX)

AJAX Exception Tests

Example 1

Send form from self-updating AJAX partial and throw back NotFoundException...

This is as expected.


Example 2

Send form from self-updating AJAX partial and throw back ApplicationException...

Expected behavior: Simple Javascript alert with text message as before, not another Exception thrown by /vendor/twig/twig/src/Template.php.


Example 3

Send form from self-updating AJAX partial and throw back AjaxException...

Expected behavior: Ajax Exception message catched by form's 'data-request-error': 'console.log(data.message)', but exception was overwritten by another one thrown by /vendor/twig/twig/src/Template.php.


Example 4

Send form from self-updating AJAX partial with wrong value (type whatever) and then with correct (type: correct). Validation is in AJAX handler.

This is as expected.


Example 5

Send form from self-updating AJAX partial with wrong value (type whatever) and then with correct (type: correct). Validation is in Model.

This issue happens in all kind of AJAX cycle when filling and throwing Validation Exception from Tailor Model, not only in self-updated ajaxPartial. Maybe a feature:-)

Expected behavior: When success, no previous form wrong state returned. Can be simply fixed with adding Session::forget('_old_input') to handler.