Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81909

Reload Table

$
0
0

Hi, i need u help again
i need reload my table after click on btn #refresh, but this not workong(

var table;
function main_table() {
  $(document).ready(function () {
        table = $('#example').DataTable({
            ajax: {
                url: '/project/all_items/',
                dataSrc: ''

            },
            "sScrollY": "90vh",
            "bPaginate": true,
            "aoColumns": [
                ...
            ],


        });
}

function refresh() {
    $('#refresh').click( function() {
        table.ajax.reload();
}

Viewing all articles
Browse latest Browse all 81909

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>