You can set custom attribute which will be added to the related action tag in XML response using set_response_attribute method.
Check out additional information on the data action object page.
dp.defineAction("invalid", function(xml){
alert("Error Bla bla bla");
return true;
});
Here you are receiving reply from the server for the particular event in the xml form. If serialized it looks like this:
function myUpdate($action){
$action->invalid();
if($action->get_value(“event_name”)=="") {
$action->set_response_attribute(‘ErrorMessage’,‘Event is missing name.’);
}
else {
$action->set_response_attribute(‘ErrorMessage’,‘Event is not missing name yet is still somehow incorrect.’);
}
}[/code]