dhtmlx connector $action->invalid();

how to show the error message on the client side if the server-side = " $action->invalid();"


You can use

on server side
$action->set_response_text(" error message text here “);

on client side, add next line to dataprocessor init

dp.defineAction(“invalid”,function(tag){ //tag - XML tag which contains error details
var text = tag.firstChild?tag.firstChild.data:”";
if (text) alert(text);
return true;

Instead of text, in above scenario, set_response_attribute can be used, it will made access data on client side is less cryptic, but it has limitation on content.

Some more info can be obtained from
dhtmlx.com/docs/products/dhtmlxG … aprocessor
"Custom server side responses" section