If you use the dataType:'json', you can return the data in JSON format, which you can use in Javascript just like a Javascript object. This will allow you to store more data in one response. Other options are HTML and XML as the respose type, but may require more parsing work to get the data you want. JSON is highly recommended.
On Aug 24, 10:21 am, sdtacoma <jbres...@gmail.com> wrote: > Is it possible to return Query results from a jquery $.ajax POST call? > It seems as though it will only return one value. What am I missing? > > var formval = { preceptname:$(this) .val()}; > $.ajax({ > type: "POST", > url: "request_processor.cfm", > dataType: "text", > data: formval, > success: function(response){ > $('#contentdiv').fadeIn(2000).html(response); > } > }); > });