hi,
is there a quick and easy way to convert a cfquery into a json array. i will be
returning the json array to extjs to present in a grid
thanks
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe
Google is your friend:
Search cfquery to json and get:
http://www.coldfusionjedi.com/index.cfm/2007/9/20/Quick-and-Dirty-JSONQuery-Example
On Mon, Jun 7, 2010 at 11:53 AM, Richard White rich...@j7is.co.uk wrote:
hi,
is there a quick and easy way to convert a cfquery into a json array. i
thanks, sorry dont think i was clear enough, i knew about serializejson but
this doesnt work with extjs, in case anyone else stumbles on this post and is
interested i found the following:
http://blog.cutterscrossing.com/index.cfm/CFQueryReader
Google is your friend:
Search cfquery to json
in fact toJson is even better for th job: http://tojson.riaforge.org/
thanks, sorry dont think i was clear enough, i knew about
serializejson but this doesnt work with extjs, in case anyone else
stumbles on this post and is interested i found the following:
toJson is better if you have room for the server-side overhead, and
don't mind writing methods that can't be used in any other scenario than
via Ajax. CFQueryReader is solely a client side solution, so that you
can reuse your server-side code in any way that you see fit.
Steve Cutter Blades
5 matches
Mail list logo