How can using the Json data source to load the data?

How can using the Json data source to load the data?

vicky200456vicky200456 Posts: 8Questions: 1Answers: 0

I am using Datatable 1.9.4 version.
I created a controller by using codeigniter. And the controller can get the data from database

I tried to configure the ajax attribute. However, it doesn't work....

When you access the controller and you can get the data format like this:
http://codeshare.io/hte8N

This is my HTML Table code:
http://codeshare.io/G6mAp

This is my initialisation code:
http://codeshare.io/fT9VR

Replies

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    Your table has three columns, but your data has six.

  • vicky200456vicky200456 Posts: 8Questions: 1Answers: 0

    RE:tangerine

    I tried using the sample code to modified it. But it doesn't work
    i select 3 index to show the data
    {"data": "EmployeeNo"},
    {"data": "EnglishName"},
    {"data": "recordTime"},

This discussion has been closed.