dataTables.editable.js - rowData is not defined
dataTables.editable.js - rowData is not defined
robertino_salemi
Posts: 13Questions: 0Answers: 0
Hi,
i use this script for add new record to my tables, I working on ASP.net MVC.
I write:
[code]
oTable = $('#tableToShow').dataTable
({
oLanguage: { sUrl: "/RaGe.IRES/HTML/TranslateDataTables" },
"sScrollY": "0px",
"bPaginate": false,
"bScrollCollapse": true
}).makeEditable({
sAddURL: "@Url.Content("~/Insert/AddNewRow")",
oAddNewRowButtonOptions: {
label: "Aggiungi",
icons: { primary: 'ui-icon-plus' }
}
});
[/code]
The query of insert works fine, but
1) the form does not close;
2) the firebug console return show an error:
[code]
ReferenceError: rowData is not defined
rtn = oTable.fnAddData(rowData);
[/code]
How i can pass the rowdata?
Thanks.
i use this script for add new record to my tables, I working on ASP.net MVC.
I write:
[code]
oTable = $('#tableToShow').dataTable
({
oLanguage: { sUrl: "/RaGe.IRES/HTML/TranslateDataTables" },
"sScrollY": "0px",
"bPaginate": false,
"bScrollCollapse": true
}).makeEditable({
sAddURL: "@Url.Content("~/Insert/AddNewRow")",
oAddNewRowButtonOptions: {
label: "Aggiungi",
icons: { primary: 'ui-icon-plus' }
}
});
[/code]
The query of insert works fine, but
1) the form does not close;
2) the firebug console return show an error:
[code]
ReferenceError: rowData is not defined
rtn = oTable.fnAddData(rowData);
[/code]
How i can pass the rowdata?
Thanks.
This discussion has been closed.
Replies
Allan