fires after a server-side response has been received and processed
response | object | a JSON object with details of a server-side response |
id | id | the ID of the related item |
details | object | an object which holds details of data saving |
dp.attachEvent("onAfterSave", function(response, id, details){
//code
});
1 . The response parameter is a server response that contains the server-side item ID, status (the operation type) and other properties, e.g.:
2 . The id parameter is the old (clientside) item ID. It will differ from the serverside ID if the item was added.
3 . The details parameter contains data saving details, e.g.:
In case of an "error" or "invalid" status during saving, the onAfterSaveError event fires instead.