. I am new to jquery datatables and facing problems with pagination. when I insert a new tuple then an extra page is being created in the table.
for example : suppose I have 1 record inserted, it initially shows 1 page at the bottom and now if I insert second one then other page is being created. How can I over come this problem
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$('#datatables').dataTable({
"sPaginationType":"full_numbers",
"aaSorting":[[2, "desc"]],
"bJQueryUI":true
});
})
</script>
sir and I have tables like
<?php foreach($response->products as $row): ?>
<tr>
<td><?=$row->id;?></td>
<td><?=$row->name;?></td>
<td><?=$row->amount;?></td>
<td><?=$row->type;?></td>
<td><?=$row->description;?></td>
<td><?=anchor('product/update/'.$row->id.'/','Edit');?></td>
<td><?=anchor('product/delete/'.$row->id.'/','Delete');?></td>
</tr>
<?php endforeach; ?>
for example : suppose I have 1 record inserted, it initially shows 1 page at the bottom and now if I insert second one then other page is being created. How can I over come this problem
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$('#datatables').dataTable({
"sPaginationType":"full_numbers",
"aaSorting":[[2, "desc"]],
"bJQueryUI":true
});
})
</script>
sir and I have tables like
<?php foreach($response->products as $row): ?>
<tr>
<td><?=$row->id;?></td>
<td><?=$row->name;?></td>
<td><?=$row->amount;?></td>
<td><?=$row->type;?></td>
<td><?=$row->description;?></td>
<td><?=anchor('product/update/'.$row->id.'/','Edit');?></td>
<td><?=anchor('product/delete/'.$row->id.'/','Delete');?></td>
</tr>
<?php endforeach; ?>