oLanguage being ignored when bServerSide = true
oLanguage being ignored when bServerSide = true
dcarbone
Posts: 1Questions: 0Answers: 0
Hey all, I tried to google for others with this issue but was unable to find anything.
When I have bServerSide = true, oLanguage values are ignored. If I set it to false the values I set are listened to.
I'm using datatables to help out with the format & display of a huge medical dataset, and I don't want to load all the content for the user's query at once so setting bServerSide to false is not an option.
However, when I try to specify custom oLanguage values, either using oLanguage : { key : value } or oLanguage { sUrl : URL }, the values are ignored entirely.
If I use sUrl I can clearly see that the request is made & returns 200 ok with the JSON object, but the values are still ignored.
Any help or insight would be greatly appreciated.
Parameters:
[code]
"aaSorting" : [[0, "desc"]],
"aoColumnDefs" : *omitted*,
"bProcessing" : true,
"bInfo" :
"oLanguage" : {
"sUrl" : i18n/dataTables/oLanguage_EN-US.php'
},
"bServerSide": true,
"bRetrieve" : true,
"sServerMethod" : "POST",
"sAjaxSource" : "*omitted*",
"iDisplayLength" : 10,
"bAutoWidth" : false,
"sDom" : '<"class"li<"clear">>rt<"class"p><"clear">',
"aLengthMenu" : [[10, 25], [10, 25]],
"sPaginationType" : "numeric",
"fnInitComplete" : *omitted*,
"fnServerData" : *omitted*
[/code]
oLanguage Object:
[code]
{
"sEmptyTable" : "value",
"sZeroRecords" : "value",
"sLoadingRecords" : "value",
"sProcessing " : "value",
"sInfo" : "Showing _START_ to _END_ of _TOTAL_ records"
}
[/code]
Thank you.
When I have bServerSide = true, oLanguage values are ignored. If I set it to false the values I set are listened to.
I'm using datatables to help out with the format & display of a huge medical dataset, and I don't want to load all the content for the user's query at once so setting bServerSide to false is not an option.
However, when I try to specify custom oLanguage values, either using oLanguage : { key : value } or oLanguage { sUrl : URL }, the values are ignored entirely.
If I use sUrl I can clearly see that the request is made & returns 200 ok with the JSON object, but the values are still ignored.
Any help or insight would be greatly appreciated.
Parameters:
[code]
"aaSorting" : [[0, "desc"]],
"aoColumnDefs" : *omitted*,
"bProcessing" : true,
"bInfo" :
"oLanguage" : {
"sUrl" : i18n/dataTables/oLanguage_EN-US.php'
},
"bServerSide": true,
"bRetrieve" : true,
"sServerMethod" : "POST",
"sAjaxSource" : "*omitted*",
"iDisplayLength" : 10,
"bAutoWidth" : false,
"sDom" : '<"class"li<"clear">>rt<"class"p><"clear">',
"aLengthMenu" : [[10, 25], [10, 25]],
"sPaginationType" : "numeric",
"fnInitComplete" : *omitted*,
"fnServerData" : *omitted*
[/code]
oLanguage Object:
[code]
{
"sEmptyTable" : "value",
"sZeroRecords" : "value",
"sLoadingRecords" : "value",
"sProcessing " : "value",
"sInfo" : "Showing _START_ to _END_ of _TOTAL_ records"
}
[/code]
Thank you.
This discussion has been closed.
Replies
Please link to a test case showing the issue: http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read
Allan