Hey guys,
This must be something simple but I just dont get it…
When binding the dp.defineAction for “update”, everything works well for me, as in the examples you provided.
But when I have an action type of “invalid” in my response, the whole xml response appears in an alert box, instaead just the message as define in my custom action. I guess this is the mechanism which should return errors or warnings from the server-side script but in this case Its unnecessary…
Here’s the response:
<?xml version="1.0" encoding="iso-8859-1"?><data><action type='invalid' sid='3' message='It didnt work.'/></data>
and the init:
dP.defineAction("invalid",function(response){
var message = response.getAttribute("message");
alert(message);
return true;
});
The debug console also doesnt show any errors, by the way.
Any ideas?
Thanks
Pavol