Paul Lecuq
36c5d6f2ed
- web service with json support - web page - cron service to update database infos
36 lines
751 B
JavaScript
36 lines
751 B
JavaScript
$(document).ready(function() {
|
|
$('#main_table').DataTable({
|
|
"display": true,
|
|
"cell-border": true,
|
|
"processing": true,
|
|
"serverSide": true,
|
|
"language": {
|
|
"lengthMenu": "Show _MENU_ entries",
|
|
"info": "Showing page _PAGE_ of _PAGES_",
|
|
"search": "Search :",
|
|
"paginate": {
|
|
"first": "First",
|
|
"last": "Last",
|
|
"next": "Next",
|
|
"previous": "Previous"
|
|
},
|
|
},
|
|
"stateSave": true,
|
|
"ajax": {
|
|
"url": "qrzws",
|
|
"type": "POST",
|
|
"contentType": "application/json",
|
|
"data": function(d) {
|
|
return JSON.stringify(d);
|
|
},
|
|
},
|
|
"columns": [
|
|
{ "name": "qrz" },
|
|
{ "name": "name" },
|
|
{ "name": "city" },
|
|
{ "name": "dept" },
|
|
{ "name": "country" },
|
|
]
|
|
});
|
|
});
|