fnDeleteRow error: k is undefined
fnDeleteRow error: k is undefined
tampe125
Posts: 7Questions: 1Answers: 0
hi, i have just started using your plugin and it's very amazing!
sadly i have an error that i can't fix :(
when i try to delete a row a get a firebug error "k is undefined".
this is my code, as i pasted from your examples:
[code]
function fnGetSelected( oTableLocal )
{
var aReturn = new Array();
var aTrs = oTableLocal.fnGetNodes();
for ( var i=0 ; i
sadly i have an error that i can't fix :(
when i try to delete a row a get a firebug error "k is undefined".
this is my code, as i pasted from your examples:
[code]
function fnGetSelected( oTableLocal )
{
var aReturn = new Array();
var aTrs = oTableLocal.fnGetNodes();
for ( var i=0 ; i
This discussion has been closed.
Replies
and i didn't touch anything...
ops! sorry for bothering you :)
[code]
if (anSelected[0]) dataTable.fnDeleteRow( anSelected[0] );
[/code]
[code]
fnOnDeleting: function (tr, id, fnDeleteRow) {
// The following returns an array of td from
var nTD = $('#example tr.row_selected td')
// Primary Key other then first column
var removeID = nTD[1].innerHTML;
jConfirm('Please confirm that you want to delete row with id ' + removeID,
'Confirm Delete', function (r) {
if (r) {
fnDeleteRow(removeID);
oTable.fnReloadAjax(oTable.fnSettings());
return true;
}
});
return false;
}
[/code]