Datatable version 1.9.4 not working

Datatable version 1.9.4 not working

ankitdilipankitdilip Posts: 1Questions: 1Answers: 0

Link to test case:
** function fetch_data()
{
$.ajax({

url:" {{ route('livetable.fetch_data') }} ",
dataType:"json",
success:function(data)
{

var html = '';
for(var count=0; count < data.length; count++)
{

 html +='<tr>';
 html +='<td contenteditable class="column_name" data-column_name="prod_id" data-id="'+data[count].id+'">'+data[count].prod_name+'</td>';
 html += '<td contenteditable class="column_name" data-column_name="price" data-id="'+data[count].id+'">'+data[count].price+'</td>';
 html += '<td contenteditable class="column_name" data-column_name="discount_rate" data-id="'+data[count].id+'">'+data[count].discount_rate+'</td>';
 html += '<td contenteditable class="column_name" data-column_name="gst_rate" data-id="'+data[count].id+'">'+data[count].gst_rate+'</td>';
 html += '<td contenteditable class="column_name" data-column_name="qty" data-id="'+data[count].id+'">'+data[count].qty+'</td>';
 html += '<td contenteditable class="column_name" data-column_name="sub_total" data-id="'+data[count].id+'">'+data[count].sub_total+'</td>';
 html += '<td><a href=""> <img src="{{ asset('img/icons/new-icon.png') }}" width="20px" height="20px" id="add" name="add"> </a></td></tr>';
}
$('#po_data').html(html);

}
});
} **:
Error messages shown:
**I am using the above said version of DT 1.9.4 in laravel and when I use this data table which contains data obtained from mysql server and load in table i.e. physical <tr><td> then it works properly BUT IF i load the same data through JQUERY AJAX then it stops the working of Searching and Pagination **:

Answers

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    That's a very old version - have you tried updating to the most recent?

    Colin

This discussion has been closed.