dataTables Editor: TypeError: e[O5l] is undefined

dataTables Editor: TypeError: e[O5l] is undefined

techbottechbot Posts: 9Questions: 4Answers: 0

TypeError: e[O5l] is undefined

Hi Alan,
I installed the editor and then left it for a week before experimenting :doh!

I get the above error message when submitting an inline cell update.
see here : http://sigs.emc23.com/players/

Replies

  • allanallan Posts: 63,353Questions: 1Answers: 10,444 Site admin

    There is no ajax option specified in your Editor initialisation. Currently Editor needs that in order to know where to submit the data.

    Allan

  • techbottechbot Posts: 9Questions: 4Answers: 0

    Ah ok, I left out the url.

    thanks Alan.

    So to oversimplify:

    editor = new $.fn.dataTable.Editor({
        ajax: "/players/api/list",
        table: "#myTable",
    

    is the outgoing url , whereas

    $('#myTable').DataTable({
    dom: "Bfrtip",
    ajax: "/players/api/list",

    is the incoming url

  • allanallan Posts: 63,353Questions: 1Answers: 10,444 Site admin

    Basically yes - that is spot on.

    Allan

This discussion has been closed.