Documentation

onBefore

fires each time before data sending of any data item

void onBefore(id id,object update){ ... };

Parameters

ididid of related item
updateobjectobject which holds state of data saving

Example

some.attachEvent("onBeforeUpdate", function(id, object){
    //... some code here ... 
});

Details

There is no "onBefore" event, but there is a family of similar events - "onBeforeUpdate", "onBeforeInsert", "onBeforeDelete" - based on update type one of them will be called

Back to top