1.8.0 sLoadingRecords not working [solved]
1.8.0 sLoadingRecords not working [solved]
Hello i'm using dataTables 1.8.0 with jquery 1.6.1 and latest jquery-ui
the http://www.datatables.net/usage/i18n#oLanguage.sLoadingRecords property doesn't seem to do anything, i tried
[code]
"oLanguage": {
"sLoadingRecords": "Please wait - loading..."
},
[/code]
and then i tried
[code]
"oLanguage": {
"sLoadingRecords": "Please wait - loading...",
"sUrl": "/lang/dataTables-<?=Zend_Registry::get('Zend_Locale')?>.txt"
},
[/code]
and also i tried putting it in my language file
[code]
"oLanguage": {
"sUrl": "/lang/dataTables-<?=Zend_Registry::get('Zend_Locale')?>.txt"
},
[/code]
i am using an Ajax source like this
[code]
"sAjaxSource": "/"+controller_name+"/ajax/",
[/code]
and i put a sleep 5seconds on the server, but the messagge is not shown
the http://www.datatables.net/usage/i18n#oLanguage.sLoadingRecords property doesn't seem to do anything, i tried
[code]
"oLanguage": {
"sLoadingRecords": "Please wait - loading..."
},
[/code]
and then i tried
[code]
"oLanguage": {
"sLoadingRecords": "Please wait - loading...",
"sUrl": "/lang/dataTables-<?=Zend_Registry::get('Zend_Locale')?>.txt"
},
[/code]
and also i tried putting it in my language file
[code]
"oLanguage": {
"sUrl": "/lang/dataTables-<?=Zend_Registry::get('Zend_Locale')?>.txt"
},
[/code]
i am using an Ajax source like this
[code]
"sAjaxSource": "/"+controller_name+"/ajax/",
[/code]
and i put a sleep 5seconds on the server, but the messagge is not shown
This discussion has been closed.
Replies
Allan
[code]
oTable = $('#visualizzazione').dataTable(
{
"bDeferRender": true,
"oLanguage": { "sUrl": "/lang/dataTables-it_IT.txt"},
"aoColumns": [
{ "sName": "ragsoc", "sWidth": "20%"},
{ "sName": "piva", "sWidth": "20%"},
{ "sName": "indirizzo", "sWidth": "20%"},
{ "sName": "citta", "sWidth": "20%"},
{ "sName": "id", "sWidth": "20%", "bSortable": false, "bSearchable": false } ],
bAutoWidth:false,
"aLengthMenu": [[5, 10, 25, 50, 100, -1], [5, 10, 25, 50, 100, "Tutti"]],
"iDisplayLength" : 10,
"sPaginationType": "full_numbers",
"bJQueryUI": true,
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "/"+controller_name+"/ajax/",
"fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
....
return nRow;
},
"fnInitComplete": function()
{
this.fnSetFilteringDelay();//this is callback function
}
});
/* Add a click handler to the rows - this could be used as a callback */
$("#visualizzazione tbody tr").live('click', function(event) {
if ($(event.target).is('tr') || $(event.target).is('td'))//non ho fatto click su link
{
$(this).addClass('row_selected');
var link = $(this).find('td').filter(':last').find('a:eq(0)').attr('href');
window.location.href = link;
}
});
[/code]
Allan
{
"sLoadingRecords": "Attendere per favore - stiamo caricando i dati...",
"sProcessing": "Caricamento...",
"sLengthMenu": "Visualizza _MENU_ elementi",
"sZeroRecords": "La ricerca non ha portato alcun risultato.",
"sInfo": "Vista da _START_ a _END_ di _TOTAL_ elementi",
"sInfoEmpty": "Vista da 0 a 0 di 0 elementi",
"sInfoFiltered": "(filtrati da _MAX_ elementi totali)",
"sInfoPostFix": "",
"sSearch": "Cerca:",
"sUrl": "",
"oPaginate": {
"sFirst": "Inizio",
"sPrevious": "Precedente",
"sNext": "Successivo",
"sLast": "Fine"
}
}
[/code]
[code]
Ragione Sociale
Partita IVA
Indirizzo
Città
Operazioni
Stiamo caricando i dati…
[/code]
Allan