submitComplete
Form submitted to the server, and data processed event (success and failure).
Please note - this property requires the Editor extension for DataTables.
Description
Submission complete event, fired when data has been submitted to the server and after any of the return handling code has been run (updating the DataTable for example).
Note that unlike submitSuccess and submitError, submitComplete will be fired for both a successful submission and an error. Additionally this event will be fired after submitSuccess or submitError.
Event naming / backwards compatibility note
Prior to Editor 1.3, events were prefixed with the string on and this event was called onSubmitComplete. 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.
This can be | |||
| 3 | data | No | |
The data that was used to update the DataTable (if no error has occurred, otherwise undefined). | |||
| 4 | action | No | |
Since 1.7.0: The action type for the operation that was just completed - | |||