Json data help.
Json data help.
felipenova
Posts: 2Questions: 0Answers: 0
Hi,
I have a JSON generate by RestEasy in this format:
[code]{"aaData":{"tipo":"Tipo1","descResumida":"DescRes1","descDetalhada":"DescDet1"}}[/code]
And my js is there:
[code]$('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "http://localhost:8080/teste_interface/rest/resource/hello",
"fnServerData": function( sUrl, aoData, fnCallback,oSettings ) {
oSettings.jqXHR = $.ajax({
'dataType': 'json',
'type': 'POST',
'url': sUrl,
'data': aoData,
'success': fnCallback
});
}
} );[/code]
And is showing "No matching records found".
Please, i need a help.
Thanks.
I have a JSON generate by RestEasy in this format:
[code]{"aaData":{"tipo":"Tipo1","descResumida":"DescRes1","descDetalhada":"DescDet1"}}[/code]
And my js is there:
[code]$('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "http://localhost:8080/teste_interface/rest/resource/hello",
"fnServerData": function( sUrl, aoData, fnCallback,oSettings ) {
oSettings.jqXHR = $.ajax({
'dataType': 'json',
'type': 'POST',
'url': sUrl,
'data': aoData,
'success': fnCallback
});
}
} );[/code]
And is showing "No matching records found".
Please, i need a help.
Thanks.
This discussion has been closed.
Replies
Post a link to a test case please.
Allan
And my js:
[code]'sAjaxSource': 'http://localhost:8080/teste_interface/rest/resource/hello',
'sAjaxDataProp': 'aaData'[/code]
Thanks