DataTables. fnReloadAjax()
DataTables. fnReloadAjax()
Hi, I have problem with this code
[code] var detailTable;
var openDialog = function(id) {
detailTable.fnReloadAjax( 'service/detail/'+ id );
console.log(detailTable);
$("#detailsBlock").modal({
overlayClose:true,
opacity:70,
overlayCss:{backgroundColor:"#eee"}
});
}[/code]
Problem appear after second call(first one after page load works perfect) openDialog. DataTables just "Processing" my server tell in log that everything fine and data has been send. I just use fnReloadAjax from this page http://datatables.net/plug-ins/api. And there is no mention about that problem.
table init code in ready() section [code]detailTable = $('#details').dataTable({
/*"sAjaxSource":"service/details",*/
"bProcessing":true,
"bServerSide": true,
"bDestroy": true,
/* "bDeferRender":true,*/
"aoColumns":[
{ "mDataProp":"lineNumber" },
{ "mDataProp":"supplierItemCode" },
{ "mDataProp":"itemDescription" },
{ "mDataProp":"invoiceQuantity" },
{ "mDataProp":"invoiceUnitNetPrice" }
], "fnServerData":connectPost
}); [/code]
Any ideas? :)
[code] var detailTable;
var openDialog = function(id) {
detailTable.fnReloadAjax( 'service/detail/'+ id );
console.log(detailTable);
$("#detailsBlock").modal({
overlayClose:true,
opacity:70,
overlayCss:{backgroundColor:"#eee"}
});
}[/code]
Problem appear after second call(first one after page load works perfect) openDialog. DataTables just "Processing" my server tell in log that everything fine and data has been send. I just use fnReloadAjax from this page http://datatables.net/plug-ins/api. And there is no mention about that problem.
table init code in ready() section [code]detailTable = $('#details').dataTable({
/*"sAjaxSource":"service/details",*/
"bProcessing":true,
"bServerSide": true,
"bDestroy": true,
/* "bDeferRender":true,*/
"aoColumns":[
{ "mDataProp":"lineNumber" },
{ "mDataProp":"supplierItemCode" },
{ "mDataProp":"itemDescription" },
{ "mDataProp":"invoiceQuantity" },
{ "mDataProp":"invoiceUnitNetPrice" }
], "fnServerData":connectPost
}); [/code]
Any ideas? :)
This discussion has been closed.
Replies