data table editor

data table editor

NakkeeranNakkeeran Posts: 7Questions: 3Answers: 0

Uncaught TypeError: $.fn.dataTable.Editor is not a constructor
facing this type of error

Replies

  • kthorngrenkthorngren Posts: 20,342Questions: 26Answers: 4,775

    There are lots of threads with this error. See if this thread or this or this.

    Kevin

  • allanallan Posts: 61,762Questions: 1Answers: 10,111 Site admin

    If you aren't able to find the answer from those threads, could you give me a link to your page so I can take a look and see what is going wrong please?

    Thanks,
    Allan

  • NakkeeranNakkeeran Posts: 7Questions: 3Answers: 0
    edited February 2020
    $(document).ready(function() {
         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",
                     type: "datetime"
                 }, {
                     label: "Salary:",
                     name: "salary"
                 }
             ]
         } );
    

    i have just added this code.. its showing error like

    Uncaught TypeError: (intermediate value).dataTable.Editor is not a function
    at HTMLDocument.<anonymous> ((index):21)
    at e (jquery.min.js:2)
    at t (jquery.min.js:2)~~~~

    Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

  • NakkeeranNakkeeran Posts: 7Questions: 3Answers: 0

    jquery.min.js:2 Uncaught TypeError: $.fn.dataTable.Editor is not a constructor
    at HTMLDocument.<anonymous> ((index):21)
    at e (jquery.min.js:2)
    at t (jquery.min.js:2)

    this error i have

  • colincolin Posts: 15,154Questions: 1Answers: 2,587

    Have you included the source files Editor? Note, this is licensed software. There's a 14 day trial that can be downloaded from here.

    Colin

This discussion has been closed.