Confirmation Messages

Hello people, can anyone tell me how can i send messages to the user when the event has been saved it into the Db or if something is wrong with it ??? sorry about my english.

Thanks in advance

Something like next can be used

[code]dp.attachEvent(“onAfterUpdate”, function(sid, action, tid, details){
if (action == “error”) alert(“Something bad”);
else alert(“Data was saved correctly”);

return true;