Some help please with Ajax source

Some help please with Ajax source

funkdifiedfunkdified Posts: 8Questions: 0Answers: 0
edited November 2012 in General
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

Replies

  • funkdifiedfunkdified Posts: 8Questions: 0Answers: 0
    Hi please don't worry about answering my question, I've found a perfect solution for my issue

    http://railscasts.com/episodes/340-datatables?view=asciicast
  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    Hi - thanks for posting back, and for the railscasts link - I hadn't seen that one before :-).

    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
This discussion has been closed.