php - jQuery DataTables load large data -


how load large data on databases jquery datatables?

        $(document).ready(function(){             $('#datatables').datatable({                 "spaginationtype":"full_numbers",                  "aasorting": [[0, 'asc'], [1, 'desc']],                  "sscrolly": "200px",                 "bjqueryui":true             });         }) 

total data on xnod_kode table > 10000 records ???

                <?php                  $result = mysql_query("select * xnod_kode limit 10");                 $no = 1;                 while ($row = mysql_fetch_array($result)) {                     ?>                     <tr>                         <td><?php echo $no; ?></td>                         <td><?php echo $row['kodepos']?></td>                         <td><?php echo $row['kelurahan']?></td>                         <td><?php echo $row['kecamatan']?></td>                     </tr>                     <?php                     $no++;                 }                 ?> 

in general, datatables handles large amounts of data best paginating , fetching data via ajax: http://datatables.net/examples/data_sources.

if data varies, , >100,000 records more of outlier condition, may consider using datatables scroller plugin: http://datatables.net/extras/scroller/. creates far superior user experience , can handle tens of thousands of rows under right conditions. optimal performance you'd want remove default sort script , place in php.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -