I corrected the code for syntax, and it loads, but don’t save anything, any suggestion?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>For demo purpose only :: &1</title>
<script src="dhtmlx_pro_full/dhtmlx.js" type="text/javascript" charset="utf-8"></script>
<script src="dhtmlxSuite_v30_pro_111031_eval/dhtmlxDataStore/codebase/datastore.js" type="text/javascript" charset="utf-8"></script>
<script src="dhtmlxSuite_v30_pro_111031_eval/php/codebase/connector.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="dhtmlx_pro_full/dhtmlx.css" type="text/css" charset="utf-8">
</head>
<body>
<div id="gridbox" width="1250px" height="250px" style="background-color:white;overflow:hidden"></div>
<div id="myForm" style="width:700px; height:300px;"></div>
<script>
mygrid = new dhtmlXGridObject('gridbox');
mygrid.setImagePath("dhtmlxSuite_v30_pro_111031_eval/php/samples/common/imgs/");
mygrid.setHeader("Codigo Cliente, Nombre, Apellido, Direccion, Correo Electronico");
mygrid.attachHeader("#connector_text_filter,#connector_text_filter,#connector_text_filter,#connector_text_filter,#connector_text_filter");
mygrid.setInitWidths("100,*,*,*,*,*,*");
mygrid.setColTypes("edtxt,edtxt,edtxt,edtxt,edtxt");
mygrid.setColSorting("connector,connector,connector,connector,connector");
mygrid.enableSmartRendering(true);
mygrid.enableMultiselect(false);
mygrid.init();
mygrid.loadXML("xx_sample_postgresql_connector.php");
var dp = new dataProcessor("xx_sample_postgresql_connector.php");
dp.init(mygrid);
//dp.setTransactionMode("POST", true);
//dp.enablePartialDataSend(true);
formData = [
{type: "input", name:"codigocliente", label: "Codigo Cliente"},
{type: "input", name:"primernombre", label: "Nombre"},
{type: "input", name:"primerapellido", label: "Apellido"},
{type: "input", name:"direccion", label: "Direccion"},
{type: "input", name:"correoelectronico", label: "Correo Electronico"}
];
var myForm = new dhtmlXForm("myForm", formData);
myForm.bind(mygrid);
myForm.attachEvent("onButtonClick", function(id){
myForm.save(); //saves the made changes
});
</script>
<div><input type="button" value="Save" onclick="myForm.save()"></div>
</body>
</html>