jeditable: enter is not pressing, editings are not saving

jeditable: enter is not pressing, editings are not saving

prinzCprinzC Posts: 2Questions: 0Answers: 0
edited April 2011 in General
Hello! In my scenaro I want client side only editing capabilities.
I have a code as in a sample:

$('td', config.recordDataTable.fnGetNodes()).editable('../examples_support/editable_ajax.php', {
"callback": function (sValue, y) {
var aPos = config.recordDataTable.fnGetPosition(this);
config.recordDataTable.fnUpdate(sValue, aPos[0], aPos[1]);
},
"submitdata": function (value, settings) {
var aPos = config.recordDataTable.fnGetPosition(this);
config.recordDataTable.fnUpdate(sValue, aPos[0], aPos[1]);

return {
"row_id": this.parentNode.getAttribute('id'),
"column": config.recordDataTable.fnGetPosition(this)[2]
};
},
"height": "14px"
});
all cells are editable. But after i finish editing the text and press enter button nothing happens - i'm still in the editing mode! When i click aside the cell, cell data is as it was before "editing".

Replies

  • prinzCprinzC Posts: 2Questions: 0Answers: 0
    FireBug says that there is an error: "sValue is not defined" in "submitdata" function.
    May be someone could explain whats wrong with it?
  • OldperlOldperl Posts: 1Questions: 0Answers: 0
    Theres a wrong named parameter in your function call.
    [code]"submitdata": function (value, settings) {
    var aPos = config.recordDataTable.fnGetPosition(this);
    config.recordDataTable.fnUpdate(sValue, aPos[0], aPos[1]);[/code]

    (value, settings) must be (sValue, settings).

    regards
This discussion has been closed.