Cannot read property 'reload' of undefined

Cannot read property 'reload' of undefined

bkdimribkdimri Posts: 4Questions: 2Answers: 0
edited May 2014 in DataTables 1.10

I am getting "Cannot read property 'reload' of undefined" error on my page.
I have added ajax reload on my page as per the instructions on. http://datatables.net/reference/api/ajax.reload()
Any help is appreciated
Thanks

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin
    Answer ✓

    var table1 = $('#example').dataTable( {

    You are using a jQuery object, not a DataTables API instance. See the API manual.

    You want to use:

    > var table1 = $('#example').DataTable( {
    

    Allan

  • bkdimribkdimri Posts: 4Questions: 2Answers: 0

    Thanks Allan. That worked like a charm!

This discussion has been closed.