During afterChange it hangs on getDataAtCell. If I remove the line and return then it works. I am trying to capture the actual id to do a database update. The id is in col 1
afterChange: function (change, source) {
var data;
data = change[0];
var row = change[0][0];
var col = change[0][1];
var oldVal = change[0][2];
var newVal = change[0][3];
var hiddenID = hot.getDataAtCell(row, 1);
alert(hiddenID);
return;
$.ajax({
url: "save.php",
type: "POST",
datatype: "json",
data: {changes: change}, // contains changed cells' data
success:function(data){
$console.text(data);
},
error: function(xhr, status, error) {
var err = eval("(" + xhr.responseText + “)”);
$console.text(err.Message);
}
});
}
});