Ivalid json reponse

Ivalid json reponse

camdaian159753@gmail.comcamdaian159753@gmail.com Posts: 3Questions: 2Answers: 0
edited October 2016 in Free community support

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

Answers

  • allanallan Posts: 64,947Questions: 1Answers: 10,758 Site admin
    Answer ✓

    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

  • camdaian159753@gmail.comcamdaian159753@gmail.com Posts: 3Questions: 2Answers: 0

    thanks Allan, I was fixed error

This discussion has been closed.