<?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: Google Visualization API and ColdFusion: Create a Data Table</title>
	<atom:link href="http://www.jensbits.com/2009/07/23/google-visualization-api-and-coldfusion-create-a-data-table/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jensbits.com/2009/07/23/google-visualization-api-and-coldfusion-create-a-data-table/</link>
	<description>my code snips</description>
	<lastBuildDate>Thu, 02 Feb 2012 01:32:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: jen</title>
		<link>http://www.jensbits.com/2009/07/23/google-visualization-api-and-coldfusion-create-a-data-table/comment-page-1/#comment-1836</link>
		<dc:creator>jen</dc:creator>
		<pubDate>Wed, 20 Oct 2010 17:40:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=306#comment-1836</guid>
		<description>@stuttsdc
Call the external js file a cfm file. For example custom.js.cfm and include it in the page. That way the server will process the CF variables provided you have them in a cfoutput tags.


&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;custom.js.cfm&quot;&gt;&lt;/script&gt;</description>
		<content:encoded><![CDATA[<p>@stuttsdc<br />
Call the external js file a cfm file. For example custom.js.cfm and include it in the page. That way the server will process the CF variables provided you have them in a cfoutput tags.</p>
<p>&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;custom.js.cfm&quot;&gt;&lt;/script&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stuttsdc</title>
		<link>http://www.jensbits.com/2009/07/23/google-visualization-api-and-coldfusion-create-a-data-table/comment-page-1/#comment-1835</link>
		<dc:creator>stuttsdc</dc:creator>
		<pubDate>Wed, 20 Oct 2010 17:30:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=306#comment-1835</guid>
		<description>@jen.  Thanks for the feedback.  I was actually to figure the bulk of my issue out but the real problem is when I try to take the &lt;script&gt; above and place it in an external file ( &lt;script type=&quot;text/javascript&quot; src=&quot;geomapscript.js&quot;&gt; as an example.)

My issue seems to be placement of the &lt;cfoutput&gt; tags you have places around the &lt;script&gt; tags in the &lt;head&gt; above.  I can not seem to move these to an appropriate place when the script is moved to it&apos;s own .js file. 

Suggesions?</description>
		<content:encoded><![CDATA[<p>@jen.  Thanks for the feedback.  I was actually to figure the bulk of my issue out but the real problem is when I try to take the &lt;script&gt; above and place it in an external file ( &lt;script type=&quot;text/javascript&quot; src=&quot;geomapscript.js&quot;&gt; as an example.)</p>
<p>My issue seems to be placement of the &lt;cfoutput&gt; tags you have places around the &lt;script&gt; tags in the &lt;head&gt; above.  I can not seem to move these to an appropriate place when the script is moved to it&apos;s own .js file. </p>
<p>Suggesions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jen</title>
		<link>http://www.jensbits.com/2009/07/23/google-visualization-api-and-coldfusion-create-a-data-table/comment-page-1/#comment-1833</link>
		<dc:creator>jen</dc:creator>
		<pubDate>Wed, 20 Oct 2010 15:56:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=306#comment-1833</guid>
		<description>@stuttsdc

Long shot, but I think it might be here:

data.setValue(#currentRow#-1, 0, &apos;US-&apos; + &apos;#state#&apos;);

I would try:

data.setValue(#currentRow#-1, 0, &quot;&apos;US-&quot; + &quot;#state#&apos;&quot;);

to get those single quotes around the state designation properly.

And, do you need an options[&apos;dataMode&apos;] for what you are trying to display?</description>
		<content:encoded><![CDATA[<p>@stuttsdc</p>
<p>Long shot, but I think it might be here:</p>
<p>data.setValue(#currentRow#-1, 0, &apos;US-&apos; + &apos;#state#&apos;);</p>
<p>I would try:</p>
<p>data.setValue(#currentRow#-1, 0, &quot;&apos;US-&quot; + &quot;#state#&apos;&quot;);</p>
<p>to get those single quotes around the state designation properly.</p>
<p>And, do you need an options[&apos;dataMode&apos;] for what you are trying to display?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stuttsdc</title>
		<link>http://www.jensbits.com/2009/07/23/google-visualization-api-and-coldfusion-create-a-data-table/comment-page-1/#comment-1831</link>
		<dc:creator>stuttsdc</dc:creator>
		<pubDate>Wed, 20 Oct 2010 14:03:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=306#comment-1831</guid>
		<description>I&apos;m trying to use this as a template to populate the geoMap visualization tool but can not get it to work at all.

My query..

&lt;cfquery name=&quot;myQuery&quot; datasource=&quot;xxx&quot;&gt;
SELECT tblLoc.StateUSAbb as state, Count(tblLoc.StateUSAbb) AS statecount
FROM ...
GROUP BY ...
HAVING ...
&lt;/cfquery&gt;

and the heart of my code for the map:

google.load(&apos;visualization&apos;, &apos;1&apos;, {packages: [&apos;geomap&apos;]});


    function drawVisualization() {
      var data = new google.visualization.DataTable();
      data.addRows(#myQuery.recordcount#);
      data.addColumn(&apos;string&apos;, &apos;state&apos;);
      data.addColumn(&apos;number&apos;, &apos;statecount&apos;);
	  &lt;cfloop query=&quot;myQuery&quot;&gt;
      	data.setValue(#currentRow#-1, 0, &apos;US-&apos; + &apos;#state#&apos;);
      	data.setValue(#currentRow#-1, 1, #statecount#);
      &lt;/cfloop&gt;
      
	  var options = {};
      options[&apos;region&apos;] = &apos;US&apos;;

      
      var geomap = new google.visualization.GeoMap(
          document.getElementById(&apos;visualization&apos;));
      geomap.draw(data, options);
    }
    

    google.setOnLoadCallback(drawVisualization);</description>
		<content:encoded><![CDATA[<p>I&apos;m trying to use this as a template to populate the geoMap visualization tool but can not get it to work at all.</p>
<p>My query..</p>
<p>&lt;cfquery name=&quot;myQuery&quot; datasource=&quot;xxx&quot;&gt;<br />
SELECT tblLoc.StateUSAbb as state, Count(tblLoc.StateUSAbb) AS statecount<br />
FROM &#8230;<br />
GROUP BY &#8230;<br />
HAVING &#8230;<br />
&lt;/cfquery&gt;</p>
<p>and the heart of my code for the map:</p>
<p>google.load(&apos;visualization&apos;, &apos;1&apos;, {packages: [&apos;geomap&apos;]});</p>
<p>    function drawVisualization() {<br />
      var data = new google.visualization.DataTable();<br />
      data.addRows(#myQuery.recordcount#);<br />
      data.addColumn(&apos;string&apos;, &apos;state&apos;);<br />
      data.addColumn(&apos;number&apos;, &apos;statecount&apos;);<br />
	  &lt;cfloop query=&quot;myQuery&quot;&gt;<br />
      	data.setValue(#currentRow#-1, 0, &apos;US-&apos; + &apos;#state#&apos;);<br />
      	data.setValue(#currentRow#-1, 1, #statecount#);<br />
      &lt;/cfloop&gt;</p>
<p>	  var options = {};<br />
      options[&apos;region&apos;] = &apos;US&apos;;</p>
<p>      var geomap = new google.visualization.GeoMap(<br />
          document.getElementById(&apos;visualization&apos;));<br />
      geomap.draw(data, options);<br />
    }</p>
<p>    google.setOnLoadCallback(drawVisualization);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EstebanD</title>
		<link>http://www.jensbits.com/2009/07/23/google-visualization-api-and-coldfusion-create-a-data-table/comment-page-1/#comment-1723</link>
		<dc:creator>EstebanD</dc:creator>
		<pubDate>Tue, 24 Aug 2010 14:23:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=306#comment-1723</guid>
		<description>Great post simple and to the point!
Thanks!</description>
		<content:encoded><![CDATA[<p>Great post simple and to the point!<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Parapeti</title>
		<link>http://www.jensbits.com/2009/07/23/google-visualization-api-and-coldfusion-create-a-data-table/comment-page-1/#comment-1318</link>
		<dc:creator>Parapeti</dc:creator>
		<pubDate>Tue, 25 May 2010 20:45:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=306#comment-1318</guid>
		<description>awesome, thank you for this tutorial</description>
		<content:encoded><![CDATA[<p>awesome, thank you for this tutorial</p>
]]></content:encoded>
	</item>
</channel>
</rss>

