sLoadingRecords string not working in first AJAX Load

sLoadingRecords string not working in first AJAX Load

fgomezfgomez Posts: 1Questions: 0Answers: 0
edited February 2012 in DataTables 1.9
sLoadingRecords string not working in first AJAX Load.
It shows sZeroRecords string instead.

My code:

[code]
var oTable;

oTable= $('#historicos').dataTable({
"bProcessing" : true,
"sAjaxSource" : baseUrl + '/historicos/getJSON',
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bLengthChange": false,
"bAutoWidth": true,
"sScrollY": "300px",
"bInfo": true,
"iDisplayLength": 50,
"aaSorting": [[ 1, "desc" ]],
"oLanguage": {
"sLoadingRecords" : "Obteniendo datos...",
"sZeroRecords": "No se han encontrado datos",
"sInfo": "Mostrando de _START_ a la _END_ de _TOTAL_",
"sInfoEmpty": "Mostrando 0 a 0 de 0 datos",
"sSearch": "Buscar en histórico:",
"sProcessing" : "Procesando...",
"oPaginate" : {
"sFirst": "Primero",
"sLast": "Último",
"sPrevious": "Anterior",
"sNext" : "Siguiente"
}
}
});
[/code]

Thank you for this fantastic component!

Replies

  • boknoytmboknoytm Posts: 2Questions: 0Answers: 0
    Have anyone solved this issue? I also encoutered this.

    It shows sZeroRecords text instead of the sLoadingRecords text.

    Please help.
  • allanallan Posts: 61,775Questions: 1Answers: 10,112 Site admin
    I've just put this example together which shows it working: http://live.datatables.net/uzaneh/edit#javascript,html . Can you link me to a test case which shows it not working so I can investigate further please?

    Allan
This discussion has been closed.