Uncaught TypeError: Object [object Object] has no method 'DataTable'

Uncaught TypeError: Object [object Object] has no method 'DataTable'

zivbzivb Posts: 2Questions: 1Answers: 0

I included both the css and the js file but there's no documentation how to install the DataTable() method on the table.
I verified that the js file is running and I copied the table from the examples so I have everything: the "table" and everything required inside it. I only need to find out how to install DataTable so the "DataTable" method will be exist on my table.

Answers

  • tangerinetangerine Posts: 3,342Questions: 35Answers: 394

    The basic example shows everything you need to get started.

    http://datatables.net/examples/basic_init/zero_configuration.html

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
  • zivbzivb Posts: 2Questions: 1Answers: 0

    After some investigation I found out that DataTable only compatible with the special jquery that came with it.
    I'm using datatable version 1.10.2 and jquery v2.1.1.
    datatable failing to register the $.fn.* members.
    Since that I don't want to mix different jquery versions I'll find another table solution until that datatable will be fixed.

  • zivbzivb Posts: 2Questions: 1Answers: 0

    OK, I created a patch version of dataTable to work around this bug.

  • zivbzivb Posts: 2Questions: 1Answers: 0

    After some investigation I found out that DataTable only compatible with the special jquery that came with it.
    I'm using datatable version 1.10.2 and jquery v2.1.1.
    datatable failing to register the $.fn.* members.
    Since that I don't want to mix different jquery versions I'll find another table solution until that datatable will be fixed.

  • zivbzivb Posts: 2Questions: 1Answers: 0

    OK, I created a patch version of dataTable to work around this bug.

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin

    DataTable only compatible with the special jquery that came with it

    That is not the case at all. DataTables will work with jQuery 1.7+. If it isn't working for you, please link to a test case showing the problem.

    Allan

This discussion has been closed.