<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Converting ColdFusion query to Javascript object</title>
	<atom:link href="http://www.fusioncube.net/index.php/converting-coldfusion-query-to-javascript-object/feed" rel="self" type="application/rss+xml" />
	<link>http://www.fusioncube.net/index.php/converting-coldfusion-query-to-javascript-object</link>
	<description>The online journey of a technophile, by Steve Brownlee</description>
	<lastBuildDate>Mon, 30 Jan 2012 21:28:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: jeff</title>
		<link>http://www.fusioncube.net/index.php/converting-coldfusion-query-to-javascript-object/comment-page-1#comment-34055</link>
		<dc:creator>jeff</dc:creator>
		<pubDate>Wed, 10 Jun 2009 04:21:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=259#comment-34055</guid>
		<description>i want to be opposite the data transfer as convert  passing variable data of Javascript   to   ColdFusion so do you know how to write programming code as possible as you know how to do it. if so , then please give me sample.
thank you</description>
		<content:encoded><![CDATA[<p>i want to be opposite the data transfer as convert  passing variable data of Javascript   to   ColdFusion so do you know how to write programming code as possible as you know how to do it. if so , then please give me sample.<br />
thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Brownlee</title>
		<link>http://www.fusioncube.net/index.php/converting-coldfusion-query-to-javascript-object/comment-page-1#comment-32690</link>
		<dc:creator>Steve Brownlee</dc:creator>
		<pubDate>Tue, 09 Dec 2008 17:40:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=259#comment-32690</guid>
		<description>Hey there Cutter.  I use JSON exclusively when returning queries from an AJAX call to a CFC.  Couldn&#039;t live without it.  The way I use this function is not via an AJAX call, it&#039;s invoked directly inside my views.</description>
		<content:encoded><![CDATA[<p>Hey there Cutter.  I use JSON exclusively when returning queries from an AJAX call to a CFC.  Couldn&#8217;t live without it.  The way I use this function is not via an AJAX call, it&#8217;s invoked directly inside my views.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve 'Cutter' Blades</title>
		<link>http://www.fusioncube.net/index.php/converting-coldfusion-query-to-javascript-object/comment-page-1#comment-32689</link>
		<dc:creator>Steve 'Cutter' Blades</dc:creator>
		<pubDate>Tue, 09 Dec 2008 14:54:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=259#comment-32689</guid>
		<description>@Steve

I&#039;ll set a function to return a struct. Each struct will contain two keys: success &amp; query. Then, when making my Ajax request I&#039;ll pass returnFormat:&#039;JSON&#039; as one of the params. CF will automatially convert the query object (this is CF 8 only, CF 7 I&#039;ll use the cfjson.cfc).

Since ColdFusion&#039;s JSON return of query data is a bit non-standard, you may need a custom parser on the client-side. I like to move process to the client whenever I can, to distribute process load. I recently wrote a custom data reader for the Ext library to do just this:

http://blog.cutterscrossing.com/index.cfm/2008/11/20/ColdFusion-Query-Json-Data-Reader</description>
		<content:encoded><![CDATA[<p>@Steve</p>
<p>I&#8217;ll set a function to return a struct. Each struct will contain two keys: success &amp; query. Then, when making my Ajax request I&#8217;ll pass returnFormat:&#8217;JSON&#8217; as one of the params. CF will automatially convert the query object (this is CF 8 only, CF 7 I&#8217;ll use the cfjson.cfc).</p>
<p>Since ColdFusion&#8217;s JSON return of query data is a bit non-standard, you may need a custom parser on the client-side. I like to move process to the client whenever I can, to distribute process load. I recently wrote a custom data reader for the Ext library to do just this:</p>
<p><a href="http://blog.cutterscrossing.com/index.cfm/2008/11/20/ColdFusion-Query-Json-Data-Reader" rel="nofollow">http://blog.cutterscrossing.com/index.cfm/2008/11/20/ColdFusion-Query-Json-Data-Reader</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Brownlee</title>
		<link>http://www.fusioncube.net/index.php/converting-coldfusion-query-to-javascript-object/comment-page-1#comment-32686</link>
		<dc:creator>Steve Brownlee</dc:creator>
		<pubDate>Tue, 09 Dec 2008 12:00:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=259#comment-32686</guid>
		<description>@Todd Rafferty. Why is it an improvement?</description>
		<content:encoded><![CDATA[<p>@Todd Rafferty. Why is it an improvement?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Brownlee</title>
		<link>http://www.fusioncube.net/index.php/converting-coldfusion-query-to-javascript-object/comment-page-1#comment-32685</link>
		<dc:creator>Steve Brownlee</dc:creator>
		<pubDate>Tue, 09 Dec 2008 11:56:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=259#comment-32685</guid>
		<description>@todd sharp. No I wouldn&#039;t.  For this particular application, all I need is simple Javascript objects.  No real need for serialization.</description>
		<content:encoded><![CDATA[<p>@todd sharp. No I wouldn&#8217;t.  For this particular application, all I need is simple Javascript objects.  No real need for serialization.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Brownlee</title>
		<link>http://www.fusioncube.net/index.php/converting-coldfusion-query-to-javascript-object/comment-page-1#comment-32684</link>
		<dc:creator>Steve Brownlee</dc:creator>
		<pubDate>Tue, 09 Dec 2008 11:54:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=259#comment-32684</guid>
		<description>@Sam.  You are correct.  In fact, I use the toScript() function in my component.  Take a closer look.  This is basically an abstraction of the toScript() function to add some customization of what the structure of the Javascript object will be.</description>
		<content:encoded><![CDATA[<p>@Sam.  You are correct.  In fact, I use the toScript() function in my component.  Take a closer look.  This is basically an abstraction of the toScript() function to add some customization of what the structure of the Javascript object will be.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todd Rafferty</title>
		<link>http://www.fusioncube.net/index.php/converting-coldfusion-query-to-javascript-object/comment-page-1#comment-32683</link>
		<dc:creator>Todd Rafferty</dc:creator>
		<pubDate>Tue, 09 Dec 2008 11:30:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=259#comment-32683</guid>
		<description>Sam &amp; Todd #2 beat me to my initial thoughts. Also, if you want to improve the script you have, don&#039;t forget about cfsavecontent and cfhtmlhead - they&#039;re lifesavers (instead of outputting directly via cfc).</description>
		<content:encoded><![CDATA[<p>Sam &amp; Todd #2 beat me to my initial thoughts. Also, if you want to improve the script you have, don&#8217;t forget about cfsavecontent and cfhtmlhead &#8211; they&#8217;re lifesavers (instead of outputting directly via cfc).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: todd sharp</title>
		<link>http://www.fusioncube.net/index.php/converting-coldfusion-query-to-javascript-object/comment-page-1#comment-32676</link>
		<dc:creator>todd sharp</dc:creator>
		<pubDate>Tue, 09 Dec 2008 02:21:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=259#comment-32676</guid>
		<description>Wouldn&#039;t you rather have the query in JSON format?</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t you rather have the query in JSON format?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Farmer</title>
		<link>http://www.fusioncube.net/index.php/converting-coldfusion-query-to-javascript-object/comment-page-1#comment-32674</link>
		<dc:creator>Sam Farmer</dc:creator>
		<pubDate>Tue, 09 Dec 2008 02:04:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=259#comment-32674</guid>
		<description>Cool stuff but I think this CF function toScript does the same thing:

http://www.cfquickdocs.com/?getDoc=ToScript#ToScript</description>
		<content:encoded><![CDATA[<p>Cool stuff but I think this CF function toScript does the same thing:</p>
<p><a href="http://www.cfquickdocs.com/?getDoc=ToScript#ToScript" rel="nofollow">http://www.cfquickdocs.com/?getDoc=ToScript#ToScript</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

