Jeditable not working (not sending request to server)

Jeditable not working (not sending request to server)

dihme69dihme69 Posts: 5Questions: 0Answers: 0
edited April 2014 in General
Hello, I'm new to this server.
Thank you for your work, this plugin is really great.

So basically, i need to update the data in my table on the server, here is my code :
"sAjaxSource": "toto.php?sEcho=1",
"fnDrawCallback": function( oSettings ) {
$('td', oTable.fnGetNodes()).editable( 'update_toto.php', {
"callback": function( sValue, y ) {
var aPos = oTable.fnGetPosition( this );
oTable.fnUpdate( sValue, aPos[0], aPos[1] );
},
"submitdata": function ( value, settings ) {
return {
"row_id": this.parentNode.getAttribute('id'),
"column": oTable.fnGetPosition( this )[2]
};
},
"height": "14px"
} );
},

When i click on a td, it changes to let me modify the value. But then, nothing is sended to server. When i open the console of firebug, there is no request POST nor GET captured.

So i dont know what is the problem.
Can someone help me?

Replies

  • dihme69dihme69 Posts: 5Questions: 0Answers: 0
    ... I added an option, 'submit' and it work.
    The problem is i can't access the plugin website so i didn't knew you need to add this option
This discussion has been closed.