submitSuccess
Form submitted to the server, and data processed event (success only).
Please note - this property requires the Editor extension for DataTables.
Description
Submission complete and successful event, fired when data has been successfully submitted to the server and all actions required by the returned data (inserting or updating a row) have been completed.
Please note the difference between the following three events that can happen at the end of a submit - only one of them will trigger for each submit action:
submitSuccess- Processed correctly and no errors detected.submitUnsuccessful- Processed correctly, but validation errors found.submitError- An uncontrolled error occurred at the server-side (typically a JSON formatting error).
Event naming / backwards compatibility note
Prior to Editor 1.3, events were prefixed with the string on and this event was called onSubmitSuccess. That event name can still be used, and will function exactly the same way as the event documented here. The new name is used for simplicity and coherence with the event naming conventions in DataTables.
Type
function( e, json, data, action )
Parameters:
| Name | Type | Optional | |
|---|---|---|---|
| 1 | e | No | |
Event object | |||
| 2 | json | No | |
JSON data returned from the server | |||
| 3 | lastRow | No | |
The data for the last row that was used to update the DataTable. This is present for compatibility with old versions of Editor only - use | |||
| 4 | action | No | |
Since 1.7.0: The action type for the operation that was just completed - | |||