cfquery and json

2012-01-10 Thread Tom Small

Hi I am new to coldfusion 9 and extjs 4 and like to know how to pass a cfquery 
to a mysql table, and then covert the data to json to populate a grid..

Would appreciate some help on this matter also if there are any tutorials for 
newbies.

Thanks 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349369
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfquery and json

2012-01-10 Thread John M Bliss

Start here and let us know if you have any trouble:

http://www.cfscreencast.com/2007/12/6/retrieving-data-from-mysql-using-cfquery/
http://www.coldfusion-ria.com/Blog/index.cfm/2009/12/14/ExtJS-30-Editor-Grid-with-ColdFusion
(I
didn't see an ExtJS 4 example on Google. Perhaps 3 will work for you?)

Tutorials for newbies:

http://www.easycfm.com/
http://www.sitepoint.com/cold-fusion-tutorial/
http://www.tomkitta.com/guides/cf_101.cfm
etc

On Tue, Jan 10, 2012 at 4:57 AM, Tom Small t...@re-base.net wrote:


 Hi I am new to coldfusion 9 and extjs 4 and like to know how to pass a
 cfquery to a mysql table, and then covert the data to json to populate a
 grid..

 Would appreciate some help on this matter also if there are any tutorials
 for newbies.

 Thanks

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349370
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfquery and json

2012-01-10 Thread Tom Small

Thanks for your assistance 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349371
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


cfquery to json array

2010-06-07 Thread Richard White

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-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334333
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfquery to json array

2010-06-07 Thread Michael Grant

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
 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-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334334
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfquery to json array

2010-06-07 Thread Richard White

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 and get:

http://www.coldfusionjedi.com/index.cfm/2007/9/20/Quick-and-Dirty-JSONQuery-Example



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334335
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfquery to json array

2010-06-07 Thread Richard White

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: 
 http://blog.cutterscrossing.com/index.cfm/CFQueryReader 
 
 Google is your friend:
 
 Search cfquery to json and get:
 
 http://www.coldfusionjedi.com/index.
 cfm/2007/9/20/Quick-and-Dirty-JSONQuery-Example
 
 
 
  


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334336
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfquery to json array

2010-06-07 Thread Cutter (ColdFusion)

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
Adobe Community Professional - ColdFusion
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer

Co-Author of Learning Ext JS
http://www.packtpub.com/learning-ext-js/book
_
http://blog.cutterscrossing.com



Richard White wrote:
 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: 
 http://blog.cutterscrossing.com/index.cfm/CFQueryReader 

 
 Google is your friend:

 Search cfquery to json and get:

 http://www.coldfusionjedi.com/index.
   
 cfm/2007/9/20/Quick-and-Dirty-JSONQuery-Example
 

   


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334346
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm