Return data using ColdFusion and jQuery Ajax
问题 I'm making a request to a cfc file that queries a database. Do I store these results in a struct, array or some other way? And depending on how I store and return the results, how do I handle the pieces from jQuery? I tried storing the results in an array and only displaying one of the results like so, which did not work: $.ajax({ type: "POST", url: "/ajax/ajax_test.cfc?method=ajaxTest", data:"field1=17", success: function(response) { var r=response; $(".cat_vid_subContainer").empty(); $("