Paging shown twice in .dataTable() during localization
I develop a PHP Zend Framework website. The table rows are displayed in table format using dataTables (www.datatables.net). The API is great and works wonderfully. My site is implemented in 2 languages currently – English(default) & German. So I tried implementing localization like given in http://www.datatables.net/examples/advanced_init/language_file.html
I added this code in my .phtml file
[PHP CODE - CHECK IF $_COOKIE['lang_code'] IS SET]
[SCRIPT CODE START]
$(document).ready(function(){
oTable = $('#example, #subscribed_docs_table, #changed_subscribed_docs_table').dataTable({
"oLanguage": {
"sUrl": "baseUrl();?>/media/language/.txt"
},
"bJQueryUI": true,
"sPaginationType": "full_numbers"
});
});
[SCRIPT END]
[PHP CONDN BLOCK END]
It was simply loading for unlimited time. I couldn’t figure the issue and did not do what to do. I moved this code to the bottom after
Share This