Some help please with Ajax source
Some help please with Ajax source
funkdified
Posts: 8Questions: 0Answers: 0
Currently I am building an html table and applying .dataTable() to the DOM table element. This is great, and easy.
I would like to follow the example on this page http://www.datatables.net/examples/data_sources/ajax.html in order to generate the table using a json source. However, I'm unsure of how to format the html table in json? I'm sorry I'm new to this, and would appreciate any help.
Thanks,
Abram
I would like to follow the example on this page http://www.datatables.net/examples/data_sources/ajax.html in order to generate the table using a json source. However, I'm unsure of how to format the html table in json? I'm sorry I'm new to this, and would appreciate any help.
Thanks,
Abram
This discussion has been closed.
Replies
http://railscasts.com/episodes/340-datatables?view=asciicast
Good to hear you got it sorted. Its worth pointing out that DataTables can consume data from just about any JSON format, as described in this blog post: http://datatables.net/blog/Extended_data_source_options_with_DataTables
Allan