سؤال

I have this table that displays a bootstrap modal with a form inside, when i fill this form and save my data or clicking to close modal, i want to refresh the data table but this caught and error:

TypeError: c is undefined on 64 line of jquery.min.js

this show this error when i refresh the ajax data, this is my code: {

$(function(){
var table = $('').dataTable({
       "bDestroy": true,
   "bProcessing": true,
   "bJQueryUI": true,
       "sAjaxSource": '/test/',
       "sDom": 't',
   "bFilter": false,
});
    table.fnClearTable(0);
    table.fnReloadAjax(null, null, false);
}); 

}

and i use the jQuery v1.10.2 and DataTables 1.9.2 versions.

Thanks!

هل كانت مفيدة؟

المحلول

Do you include the fnReloadAjax plugin?

<script type="text/javascript" src="//cdn.datatables.net/plugins/505bef35b56/api/fnReloadAjax.js"> </script>

link of cdn: fnRealodAjaxCDN

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top