in place editor not working
in place editor not working
rsmet
Posts: 1Questions: 0Answers: 0
I am trying to implement the datatable and inplace editor but somehow it does not work..
here is my code..
oTable = $('#resultTable').dataTable( {
"sScrollY": 300,
"sScrollX": '100%',
"bPaginate": false,
"bProcessing": true,
"bFilter": true,
"bSort": true,
"bInfo": false,
} );
oTable.fnSort( [ [0,'desc']]);
oTable.$('td').editable( '/home/admin/editResults.jsp', {
"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",
"width": "100%"
} );
this is all in a $(document).ready( function() { ....
block ..
I have a html table defined as
CODE
Name
DESC
I can see the data in the table but cant edit it..
please gudie me if i am missing anything ..
here is my code..
oTable = $('#resultTable').dataTable( {
"sScrollY": 300,
"sScrollX": '100%',
"bPaginate": false,
"bProcessing": true,
"bFilter": true,
"bSort": true,
"bInfo": false,
} );
oTable.fnSort( [ [0,'desc']]);
oTable.$('td').editable( '/home/admin/editResults.jsp', {
"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",
"width": "100%"
} );
this is all in a $(document).ready( function() { ....
block ..
I have a html table defined as
CODE
Name
DESC
I can see the data in the table but cant edit it..
please gudie me if i am missing anything ..
This discussion has been closed.