<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Stillnet Studios &#187; Uncategorized</title>
	<atom:link href="http://www.stillnetstudios.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stillnetstudios.com</link>
	<description>Web development notes and commentary from Ryan Stille</description>
	<lastBuildDate>Tue, 27 Jul 2010 14:40:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>aligning cells in an html cfgrid</title>
		<link>http://www.stillnetstudios.com/aligning-cells-in-an-html-cfgrid/</link>
		<comments>http://www.stillnetstudios.com/aligning-cells-in-an-html-cfgrid/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 03:35:26 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.stillnetstudios.com/?p=673</guid>
		<description><![CDATA[The other day I had the need to align some data in an html cfgrid.  There are some alignment attributes of the cfgriditem tag, but they do not work in html grids.  I tried wrapping the data in a span tag with some css aligning it, but that didn&#8217;t work either.
But there is [...]]]></description>
			<content:encoded><![CDATA[<p>The other day I had the need to align some data in an html cfgrid.  There are some alignment attributes of the cfgriditem tag, but they do not work in html grids.  I tried wrapping the data in a span tag with some css aligning it, but that didn&#8217;t work either.</p>
<p>But there is a way.  When CF8 generates the grid it writes out CSS ids and classes that you can use to style the grid.  For example to right align the 5th column you can use this:</p>
<pre><code>.x-grid-td-5 {text-align:right;}</code></pre>
<p>The number you need to use in the class name does not always match up with the column.  Sometimes I had to use .x-grid-td-8 to reference the 6th column for example.  I think the number increments for each cfgrid item, even if you have display=no.</p>
<p>If you have more than one cfgrid on your page and only want to align the nth column in one of them, you can wrap the cfgird in a div with an ID so you can reference only that grid in your CSS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stillnetstudios.com/aligning-cells-in-an-html-cfgrid/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Referencing returned value array values in CF9</title>
		<link>http://www.stillnetstudios.com/referencing-array-values-cf9/</link>
		<comments>http://www.stillnetstudios.com/referencing-array-values-cf9/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 04:06:27 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Railo]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.stillnetstudios.com/?p=653</guid>
		<description><![CDATA[I just discovered a neat feature of CF9.  Sometimes when calling a built in function or even a custom method, you get returned an array.  But sometimes you only need one element in that array.  In Perl and other languages its possible to directly access the element you want.  I&#8217;m glad [...]]]></description>
			<content:encoded><![CDATA[<p>I just discovered a neat feature of CF9.  Sometimes when calling a built in function or even a custom method, you get returned an array.  But sometimes you only need one element in that array.  In Perl and other languages its possible to directly access the element you want.  I&#8217;m glad to see this has been added to ColdFusion9.</p>
<p>For example, lets say you need the second particular element in an XML document.  You might fetch some XML with cffeed and then use XMLSearch() to get all the matching elements.  Then reference the second element of the resulting array, like this:<br />
<span id="more-653"></span></p>
<pre><code>&lt;cffeed source = "http://weather.yahooapis.com/forecastrss?p=90210" xmlVar= "myXML"&gt;

&lt;cfset Forecasts =
     xmlSearch(myXML,"//*[local-name()='forecast' and namespace-uri()='http://xml.weather.yahoo.com/ns/rss/1.0']")&gt;

&lt;cfset theForecastIwant = Forecasts[2]&gt;</code></pre>
<p>In CF9 you can take a little shortcut, like you can in many other languages:</p>
<pre><code>&lt;cffeed source = "http://weather.yahooapis.com/forecastrss?p=90210" xmlVar= "myXML"&gt;

&lt;cfset theForecastIwant =
     xmlSearch(myXML,
     "//*[local-name()='forecast' and namespace-uri()='http://xml.weather.yahoo.com/ns/rss/1.0']")<strong style="color: red;">[2]</strong>&gt;</code></pre>
<p>Nice!  This probably happened when the team added the <a href="/anonymous-arrays-coldfusion9/">anonymous variables</a> feature.</p>
<p>And if you are wondering, this works fine in Railo 3.1 but not in OpenBD 1.1.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stillnetstudios.com/referencing-array-values-cf9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
