fnServerData
fnServerData
Hallo,
my code looks like:
[code]
oTBKrankAktiv = $('table#KrankAktiv.display').dataTable( { "bProcessing": true,
"bJQueryUI": true,
"bServerSide": true,
"sAjaxSource": "http://localhost/krank/krank_serversite.php",
"fnServerData": function (sSource, aoData, fnCallback){
$.getJSON( sSource, aoData, function (json) {
fnCallback(json)});
} });
[/code]
The Server send a valid json-Object back but the records are not displayed in the Table. Here is the html-code for this example:
[code]
'
aktiv
nachname
vorname
Daten werden vom Server geladen
';
[/code]
Where ist my failure, can someone help me thanks
Joachim
my code looks like:
[code]
oTBKrankAktiv = $('table#KrankAktiv.display').dataTable( { "bProcessing": true,
"bJQueryUI": true,
"bServerSide": true,
"sAjaxSource": "http://localhost/krank/krank_serversite.php",
"fnServerData": function (sSource, aoData, fnCallback){
$.getJSON( sSource, aoData, function (json) {
fnCallback(json)});
} });
[/code]
The Server send a valid json-Object back but the records are not displayed in the Table. Here is the html-code for this example:
[code]
'
aktiv
nachname
vorname
Daten werden vom Server geladen
';
[/code]
Where ist my failure, can someone help me thanks
Joachim
This discussion has been closed.