Ivalid json reponse
Ivalid json reponse

please help me
Editor::inst($db, 'bo_mon', 'Ma_BM')
->fields(
Field::inst('Ma_BM') ->validator( 'Validate::notEmpty' ),
Field::inst('Ten_BM') ->validator( 'Validate::notEmpty' )
)
->process($_POST)
->json();
$(document).ready(function() {
editor = new $.fn.dataTable.Editor( {
ajax: "bomon.php",
table: "#bo_mon",
fields: [ {
label: "First name:",
name: "Ma_BM"
}, {
label: "Last name:",
name: "Ten_BM"
}
]
} );
var table = $('#bo_mon').DataTable( {
lengthChange: false,
ajax: "bomon.php",
columns: [
{ data: "Ma_BM" },
{ data: "Ten_BM" }
],
select: true
} );
// Display the buttons
new $.fn.dataTable.Buttons( table, [
{ extend: "create", editor: editor },
{ extend: "edit", editor: editor },
{ extend: "remove", editor: editor }
] );
table.buttons().container()
.appendTo( $('.col-sm-6:eq(0)', table.table().container() ) );
} );
Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
What is the data that is being returned from the server? Use the details here if you aren't sure how to find that.
Allan
thanks Allan, I was fixed error