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

how to display Datatable Data Using Ajax Sourse Data in Java

$
0
0

function view(){

    var dataTable =  $('#example').DataTable(
    {
        processing: true,
        serverSide: true,        
        "deferRender": true, 
        "orderable": true,   
        "searchable": true,   
        "ajax":
        {
            "url": "index.htm",
            "type": 'POST',
            "data": function ( d )              
                    {
                         var JSONData = JSON.parse(d);
                        console.log(JSONData);
                         // fnCallback(d);
                    }

        },
        "columns":  [              
                        {"data": "Name"},
                        {"data": "Email"},
                        {"data": "Contact"}

                    ]

    });



     }

Viewing all articles
Browse latest Browse all 81728

Trending Articles



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