Blank Screen on init of editor

Blank Screen on init of editor

INTONEINTONE Posts: 153Questions: 58Answers: 6
edited October 2014 in Editor

Hi I am trying to initialize datatables which does work partially. I do see a big list but there is no pagination also when I try to make an edit or create a new record a blank screen appears with no error message. I am using an example code from the editor examples as seen below:

$(document).ready(function(){
var editor; // use a global for the submit and return data rendering in the examples
editor = new $.fn.dataTable.Editor( {
"ajax": "../php/staff.php",
"table": "#example",
"fields": [ {
"label": "First name:",
"name": "first_name"
}, {
"label": "Last name:",
"name": "last_name"
}, {
"label": "Position:",
"name": "position"
}, {
"label": "Office:",
"name": "office"
}, {
"label": "Extension:",
"name": "extn"
}, {
"label": "Start date:",
"name": "start_date"
}, {
"label": "Salary:",
"name": "salary"
}
]
} );

$('#example').DataTable( {
    dom: "Tfrtip",
    ajax: {
        url: "../php/staff.php",
        type: "POST"
    },
    serverSide: true,
    destroy: true,
    columns: [
        { data: "first_name" },
        { data: "last_name" },
        { data: "position" },
        { data: "office" },
        { data: "start_date" },
        { data: "salary", render: $.fn.dataTable.render.number( ',', '.', 0, '$' ) }
    ],
    tableTools: {
        sRowSelect: "os",
        aButtons: [
            { sExtends: "editor_create", editor: editor },
            { sExtends: "editor_edit",   editor: editor },
            { sExtends: "editor_remove", editor: editor }
        ]
    }
} );

})

my test domain is at : http://app886.prg0.relbitapp.com/index2.html#view_company

Can you please point me in the right direction?

This question has an accepted answers - jump to answer

Answers

  • INTONEINTONE Posts: 153Questions: 58Answers: 6
    edited October 2014

    I have found solution for the issue with the missing editor but still can not figure out why there is no pagination is broken.

  • allanallan Posts: 61,822Questions: 1Answers: 10,127 Site admin
    Answer ✓

    Hi,

    The server doesn't appear to be returning the required information for server-side processing.

    Are you using the Editor PHP libraries that come in with the Editor package download? If so, can you show me the PHP you are using for the table?

    Allan

  • INTONEINTONE Posts: 153Questions: 58Answers: 6

    I just found out I was using an older version of the php server side files.

This discussion has been closed.