Evo code...
Code:
<table id="tabela_logove">
<thead>
<tr>
<th >Datum i vreme logovanja</th>
<th >Operater</th>
<th >IP adresa</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<script type="text/javascript">
$(document).ready(function () {
//$('#tabela_gradovi').dataTable();
// alert('dosao do ajaxa');
$('#tabela_logove').dataTable({
"bServerSide": true,
"sAjaxSource": "PrikaziLogoveJSON",
"info": false,
"bProcessing": true,
"bFilter": false,
"ordering": false,
"bInfo": false,
"bLengthChange": false,
"oPaginate": {
"sFirst": "|<",
"sPrevious": "<<",
"sNext": ">>",
"sLast": ">|"
},
"aoColumns": [
{ sName: 'Datum_i_vreme_logovanja', mData: 'Datum_i_vreme_logovanja', sDefaultContent: "" },
{ sName: 'Operater', mData: 'Operater', sDefaultContent: "" },
{ sName: 'IP_adresa', mData: 'IP_adresa', sDefaultContent: "" }
],
"aoColumnDefs": [
{ "sWidth": "40%", "aTargets": [ 0 ] }
]
});
});
</script>