ColdFusion - How do I get ajax source data in that format?

ColdFusion - How do I get ajax source data in that format?

madvoramadvora Posts: 11Questions: 4Answers: 0
edited April 2014 in General
I'm following the example on this page.
http://datatables.net/release-datatables/examples/ajax/objects.html

I can recreate this by pasting the server response array into another file and referencing that with the sAjaxSource attribute. However, I need to run a query to get my data. How can I get query results into the format needed for an Ajax source?

Replies

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin
    I think you'll need to ask on a ColdFusion forum how to create JSON data. Although there are a few ColdFusion folks to drop by here now and then, you'll have much more luck asking ColdFusion questions where ColdFusion folks frequent :-)

    Allan
  • jblissjbliss Posts: 1Questions: 0Answers: 0
    Check out cffunction returnFormat="JSON"
This discussion has been closed.