Server Validations error handling
I have a single page application built with jquery that loads about 20 pages on demand via jquery’s AJAX functions (content inserted into DOM without page refresh).
So far, I am able to create insert pages in its own file (separate from form).
Using jquery I am able to serialize form content and post it to the insert php file while preventing default action (page reload, etc.)…works quit well.
I have also chained functions such as: server validation, insert-1, insert-2 (this works well too). When validation fails...insert-1, etc do not run (which is correct).
However, the problem is error handling.
For server validations, I am not able to redirect on failure as that causes index.php to reload with it’s default view/state (tried it and it doesn’t work anyway). I can reload my form page (form.php) with AJAX into index.php where Submit was pressed which includes Validation Show If, but errors are not shown.
How are Server Validations errors/invalidations handled? Are they captured to a variable? Are you passing a URI to the redirect page?
What are my options here?
Running: DataBridge 1.08