My code is the following:
function InitCafedrasGrid(){
grid = new dhtmlXGridObject(‘grid_container’);
grid.setImagePath(“css/images/”);
grid.setHeader(“Назва кафедри, ПІБ керівника”);
grid.setColumnIds(“cafedra,zav_cafedra”);
grid.setInitWidths(“200,200”);
grid.setColAlign(“left,right”);
grid.setSkin(“light”);
grid.setColSorting(“str,str”);
grid.setColTypes(“ed,ed”);
//grid.setColumnColor(“white,white”)
grid.enableDragAndDrop(true);
grid.attachHeader("#text_filter,");
grid.init();
grid.loadXML(“db/dataprocessor/get.php?object=cafedras”);
dhxDataProcessor = new dataProcessor(“db/dataprocessor/update.php”);
dhxDataProcessor.setTransactionMode(“POST”);
dhxDataProcessor.enableDataNames(true);
dhxDataProcessor.enableDebug(true);
dhxDataProcessor.init(grid);
dhxDataProcessor.setOnAfterUpdate(function(){
alert(“OnAfterUpdate”);
});
}
update.php
<?php
print("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
print("\n");
print("\n\t");
print("");
print("");
?>
FireFox shows the following error:
dhtmlxEventable is not defined…
The message :
alert(“OnAfterUpdate”);
doesn’t appear.
What am I doing wrong? Please, help…
Thank’s…
Hello,
Please, be sure that all grid and dataprocessor libraries are from the same version.
The problem looks like you use the old version of dhtmlxcommon.js - we have attached the latest one.
dhtmlxcommon.zip (5.98 KB)
Thank you… That was the reason of the problem.