<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://web.resource.org/cc/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
<channel>
<title>n42 Designs</title>
<link>http://www.n42designs.com/blog/index.cfm</link>
<description>n42 Designs Blog</description>
<language>en-us</language>
<pubDate>Sat, 18 May 2013 18:32:56 -0400</pubDate>
<lastBuildDate>Tue, 10 Apr 2012 11:26:00 -0400</lastBuildDate>
<generator>BlogCFC</generator>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<managingEditor>sean@n42designs.com</managingEditor>
<webMaster>sean@n42designs.com</webMaster>
<itunes:subtitle></itunes:subtitle>
<itunes:summary></itunes:summary>
<itunes:category text="Technology" />
<itunes:category text="Technology">
<itunes:category text="Podcasting" />
</itunes:category>
<itunes:category text="Technology">
<itunes:category text="Tech News" />
</itunes:category>
<itunes:keywords></itunes:keywords>
<itunes:author></itunes:author>
<itunes:owner>
<itunes:email>sean@n42designs.com</itunes:email>
<itunes:name></itunes:name>
</itunes:owner>
<itunes:explicit>no</itunes:explicit>
<item>
<title>FarCry LESS Plugin</title>
<link>http://www.n42designs.com/blog/index.cfm/2012/4/10/FarCry-LESS-Plugin</link>
<description>
Today I released a &lt;a href=&quot;https://github.com/seancoyne/farcryless&quot;&gt;plugin for FarCry&lt;/a&gt; that will automatically compile your &lt;a href=&quot;http://lesscss.org/&quot;&gt;LESS&lt;/a&gt; files into CSS. No more need to compile on your development machine before you push to production, and no more need to punish your users by compiling on the client side with &lt;a href=&quot;https://github.com/cloudhead/less.js&quot;&gt;Less.js&lt;/a&gt;. While those solutions are perfectly acceptable, this plugin will let you simply code in LESS, then let FarCry do the work of serving compiled, minified CSS to your users.
The plugin uses a similar syntax to FarCry&apos;s built in skin:loadCSS tag so it should be instantly familiar. Be sure to read the installation instructions to avoid a couple of potential &quot;gotchas&quot;.
&lt;a href=&quot;https://github.com/seancoyne/farcryless&quot;&gt;Check it out on Github&lt;/a&gt;, and let me know if its useful for you, or if you would like to see any additional features.
</description>
<category>FarCry</category>
<category>ColdFusion</category>
<pubDate>Tue, 10 Apr 2012 11:26:00 -0400</pubDate>
<guid>http://www.n42designs.com/blog/index.cfm/2012/4/10/FarCry-LESS-Plugin</guid>
</item>
<item>
<title>FarCry Solr Pro</title>
<link>http://www.n42designs.com/blog/index.cfm/2012/4/5/FarCry-Solr-Pro</link>
<description>
&lt;a href=&quot;http://jeffcoughlin.com/blog&quot;&gt;Jeff Coughin&lt;/a&gt; and I just launched a new FarCry plugin to enhance the search capabilities of your FarCry website. Check out &lt;a href=&quot;http://jeffcoughlin.com/blog/index.cfm/2012/4/5/FarCry-Solr-Pro-Plugin&quot;&gt;his announcement&lt;/a&gt; or the &lt;a href=&quot;http://jeffcoughlin.github.com/farcrysolrpro&quot;&gt;plugin website&lt;/a&gt; for more information.
</description>
<category>FarCry</category>
<category>ColdFusion</category>
<pubDate>Thu, 05 Apr 2012 17:30:00 -0400</pubDate>
<guid>http://www.n42designs.com/blog/index.cfm/2012/4/5/FarCry-Solr-Pro</guid>
</item>
<item>
<title>Github Gist renderer for BlogCFC</title>
<link>http://www.n42designs.com/blog/index.cfm/2012/2/12/Github-Gist-renderer-for-BlogCFC</link>
<description>
I created a quick renderer for Github Gists for use within &lt;a href=&quot;http://www.blogcfc.com/&quot; target=&quot;_blank&quot;&gt;BlogCFC&lt;/a&gt; entries. You can see it in action right here. If interested just grab the code from the gist below and save it to /org/camden/blog/render/gist.cfc. You can then use
&lt;code&gt;&lt;gist id=&quot;[gist id]&quot;&gt;&lt;/code&gt;
to include the gist in your entry. If you want to constrain the height you can use CSS like:
&lt;code&gt;
.gist .gist-file .gist-data {
max-height: 250px;
}
&lt;/code&gt;
Here is an example of what the output looks like, using the Gist I created to hold the code for the renderer. Feel free to grab it for your own BlogCFC install.
&lt;gist id=&quot;1810183&quot;&gt;
</description>
<category>ColdFusion</category>
<pubDate>Sun, 12 Feb 2012 14:47:00 -0400</pubDate>
<guid>http://www.n42designs.com/blog/index.cfm/2012/2/12/Github-Gist-renderer-for-BlogCFC</guid>
</item>
<item>
<title>FarCry Slider Formtool</title>
<link>http://www.n42designs.com/blog/index.cfm/2011/9/20/FarCry-Slider-Formtool</link>
<description>
&lt;p&gt;I posted this on the &lt;a href=&quot;https://groups.google.com/group/farcry-dev&quot; target=&quot;_blank&quot;&gt;farcry-dev&lt;/a&gt; mailing list but thought I would post it here as well to help future googlers in need.&lt;/p&gt;
&lt;p&gt;I have created a slider formtool for a client and thought it could be useful to others in the community. You can find the source for it here: &lt;a href=&quot;https://gist.github.com/1230366&quot; target=&quot;_blank&quot;&gt;https://gist.github.com/1230366&lt;/a&gt;&lt;/p&gt;&lt;gist id=&quot;1230366&quot;&gt;
&lt;p&gt;To use, simply download the CFC, and place it in your projects /farcry/projects/projectname/packages/formtools directory. Once there, you specify the metadata in your custom types as you would use any other formtool.&lt;/p&gt;
&lt;code&gt;&lt;cfproperty ftLabel=&quot;Num. of Apples&quot; name=&quot;numApples&quot; type=&quot;integer&quot; ftType=&quot;slider&quot; ftMin=&quot;1&quot; ftMax=&quot;100&quot; ftStep=&quot;1&quot; ftOrientation=&quot;horiztonal&quot; /&gt;&lt;/code&gt;
&lt;p&gt;The formtool is an extension of the numeric formtool found in core, so you can use any of the features found from that formtool in the slider (ftPrefix, ftSuffix, etc).&lt;/p&gt;
&lt;p&gt;The slider formtool adds 4 new metadata options. ftMin, ftMax, ftStep, and ftOrientation. Min and Max are the lowest and highest values allowed for the field. ftStep is the increment factor the slider will use. If you specify one, each slide of the slider will move the value by 1, if you specify 0.5, it will increment it by 0.5 (1, 1.5, 2, etc). ftOrientation can be either &quot;horizontal&quot; or &quot;vertical&quot; and it will orient the slider either horizontally or vertically.&lt;/p&gt;
&lt;p&gt;Your users can either type a value into the text box or use the slider to select a value.&lt;/p&gt;
&lt;p&gt;This uses the jQuery UI Slider widget (&lt;a href=&quot;http://jqueryui.com/demos/slider/&quot; target=&quot;_blank&quot;&gt;http://jqueryui.com/demos/slider/&lt;/a&gt;) so you can use it with FarCry 6+ since core ships with jQuery UI built in.&lt;/p&gt;
&lt;p&gt;If you find it useful, missing a feature, broken, etc please let me know. Consider it released under a &quot;do whatever you want with it&quot; license.&lt;/p&gt;
</description>
<category>FarCry</category>
<category>ColdFusion</category>
<pubDate>Tue, 20 Sep 2011 21:37:00 -0400</pubDate>
<guid>http://www.n42designs.com/blog/index.cfm/2011/9/20/FarCry-Slider-Formtool</guid>
</item>
<item>
<title>FarCry YouTube Plugin</title>
<link>http://www.n42designs.com/blog/index.cfm/2011/8/8/FarCry-YouTube-Plugin</link>
<description>
One of our clients asked for better integration of their YouTube hosted videos on their FarCry website. They had been linking to the youtube.com URLs directly, leading traffic away from their website. Obviously, they would have preferred to keep those visitors on their site and engaged.
As some other clients have also expressed a desire to display YouTube videos on their sites, I decided to build the functionality as a FarCry plugin. This would allow me to move this feature set to any FarCry site.
At its foundation, the plugin works via two custom types and a scheduled task. The scheduled task runs and uses the YouTube API to grab the playlists and videos on the specified account (configurable via a FarCry config). If it finds those objects already in FarCry, it updates them with the latest data from YouTube, if its new, it adds it to the FarCry database. Any items found in FarCry that aren&apos;t returned by the API are deleted. The plugin gives you the ability to reorder the videos on a playlist via the FarCry webtop. All data is managed on the YouTube side. I may consider adding the ability to completely manage the videos and playlists on the webtop, but that will greatly increase the complexity of the plugin, and I don&apos;t see a great benefit to doing so. To me, it makes more sense to go straight to the source to upload new videos, manage your videos, etc rather than try to stuff all that functionality into a FarCry form. No need to reinvent the wheel, in my opinion.
The plugin also includes two rules. One lists videos based on selected playlists or videos, the other displays an embedded video.
To interact with the YouTube API, I made use of &lt;a href=&quot;http://www.coldfusionjedi.com/&quot;&gt;Raymond Camden&lt;/a&gt;&apos;s awesome &lt;a href=&quot;http://youtubecfc.riaforge.org/&quot;&gt;YouTube CFC&lt;/a&gt;.
I am happy to say that I have also posted this code on Github for the entire community to use. Give it a try! If you have any ideas for improvement please open a ticket, or better yet, fork the project and send me a pull request.
You can find the project on &lt;a href=&quot;http://farcryyoutube.riaforge.org/&quot;&gt;RIAForge&lt;/a&gt; and &lt;a href=&quot;https://github.com/seancoyne/FarCry-YouTube-Plugin&quot;&gt;Github&lt;/a&gt;.
</description>
<category>FarCry</category>
<category>ColdFusion</category>
<pubDate>Mon, 08 Aug 2011 17:22:00 -0400</pubDate>
<guid>http://www.n42designs.com/blog/index.cfm/2011/8/8/FarCry-YouTube-Plugin</guid>
</item>
<item>
<title>How I Got Started in ColdFusion</title>
<link>http://www.n42designs.com/blog/index.cfm/2011/8/1/How-I-Got-Started-in-ColdFusion</link>
<description>
Steve Bryant &lt;a href=&quot;http://www.bryantwebconsulting.com/blog/index.cfm/2011/7/20/August-1-2011-is-How-I-Started-ColdFusion-Day&quot;&gt;suggested&lt;/a&gt; that Aug 1, 2011 be &quot;How I Got Started in ColdFusion&quot; day. I think that is a great idea, and would like to share my story.I always had a love for gadgets and machines, which naturally led to a love for computers. I wrote my first program, Tic Tac Toe, in Basic on my family&apos;s &lt;a href=&quot;http://en.wikipedia.org/wiki/IBM_PCjr&quot;&gt;IBM PC Jr&lt;/a&gt; when I was in 7th grade or so.
When I went off to college, I decided early on that Computer Science would be my major. At this point, I had already been building websites for a few years while in high school. First, I would toy around with HTML on sites like Geocities and Angelfire, creating webpages for myself and family members. I used all the sweet tags like &amp;lt;blink /&amp;gt; and &amp;lt;marquee /&amp;gt;, they were awesome! :)
Around 1998 or so, a volunteer at my church gave me an opportunity to assist him with maintaining the church&apos;s website. It was mostly static HTML, with some bits of, GASP, PHP mixed in. This was my first taste of server side web development. That said, most of what I helped out with, was the weekly posting of newsletters and schedules to their respective pages. Rather than simply manually convert the text from the newsletters and schedules into HTML each week, which would take a while given all the formatting that needed to be done, we had a Perl script that would parse the text and add the required HTML formatting such as lists, paragraphs, headings, etc. It was a really neat script, and my first look at regular expressions. I developed a healthy respect for the power of Perl and its string manipulation libraries.
I continued to work on the church&apos;s website, eventually on my own as the current &quot;webmaster&quot; moved on to some other projects. I continued learning, mostly PHP, and applied those self taught skills to the site, expanding it in small ways. This continued until about 2002 when I was mid-way through college.
At that point, I was well along with my college studies, having taken courses in basic programming, c/c++, visual basic, database development, networking, etc; the standard CS curriculum. I spent two summers interning at ING in Hartford, CT, first in the DBA group, and next in the project and process management group. I created a PHP application that allowed the DBAs to view current status information for all of the production databases, and another application to manage the metadata for those databases for the project managers to use. This gave me some great experience and real world use.
When I returned to school, I then took a course called &quot;Web Development II&quot;, a follow up to a basic introductory course on HTML and the structure of web pages. This course was to introduce server side, and dynamic web development. I didn&apos;t think much of it at the time, figuring I would be a C++ or Java programmer, or maybe a DBA when I graduated. I loved web development, but never really considered it would be my career. I didn&apos;t think I would be that lucky.
So by now you are probably wondering, but how the heck did you start using ColdFusion??! You&apos;re right! All this rambling and I haven&apos;t even reached that yet! Fear not, here it comes :)
When we started &quot;Web Development II&quot;, my professor gave us an option. We could scrap the &quot;scheduled&quot;, boring lesson plans for the course which would give us a slight introduction to dynamic web development, but not give us any in depth experience, or we could explore the technology that he used, ColdFusion, and build our own full applications in the short time the course would run.
My first reaction to this was, OH NO! I had heard of ColdFusion, but only the bad things. You know the ones. &quot;Its Dead!&quot; &quot;Its Old!&quot; &quot;It doesn&apos;t scale!&quot; &quot;Its not a real programming language!&quot; I was leaning toward sticking with the course&apos;s scheduled curriculum, but I didn&apos;t want to rock the boat. I figured that I had been doing this already for a while, and I didn&apos;t need in depth anyways, I just wanted the credits. :)
The class decided to try ColdFusion, and get the most out of the course they could. I am glad that decision was made! From the start, I fell in love with ColdFusion. It made all the hardest things so easy! In PHP I would have to manually connect to the database, setting up that connection with each page, then pass the SQL in as a string, run 2 or 3 methods just to execute the query and return each row as iterated. I thought this was OK. Then CF introduced me to the magical &amp;lt;cfquery /&amp;gt; tag! I thought to myself, &quot;I have been doing it this way all this time, when THIS is available!??&quot;
My professor could tell right away that I was into it. Since I had been doing web development for a while, I would pick up the easier things faster, and had more time on my hands in class. Toward the end of the class, for our final project, we would break up into teams and build a functional application from scratch. It would be a basic CRUD app to manage a database.
Now, I had never been a great fan of &quot;teams&quot; in school. Mostly because I would end up doing all of the work. It always seemed to me, that no one took the work seriously, and I would have to make up the slack. I didn&apos;t want to do the team project, fearing that would again happen, and someone else would get to slide by while I did the heavy lifting.
My professor sensed this, and came to me after class and told me that he had a different final project in mind for me. He wanted me to work on a project of his, that he was working on for a client. This was great! A real world project! This would be a great learning experience. So we talked about what I would build, how it would work, etc and I set to work building it. Once it was complete, he reviewed it, and we had some back and forth tweaking some things. It was a really great experience for me to have, and really prepared me for my future endeavors.
After this experience, I decided I wanted to do web development professionally. I got a job in the Academic Services Center at my school, building their intranet website, including an application that allowed students to look up a professor&apos;s schedule, and find out where they would be at a given time. This was a classic ASP application. Trust me, I wished for the sweet relief of ColdFusion each day I worked there! It was a great experience though.
As graduation approached, I started looking for web development jobs. I didn&apos;t specifically look for ColdFusion, after all, I needed a job and wasn&apos;t going to be picky! I interviewed at a few different places, even got an offer for a web development job. I wasn&apos;t exactly thrilled with the work I would be doing though, so I kept looking.
Eventually I stumbled upon a web development position, close to my parents home (central CT), and, would you believe it, they used ColdFusion! I was excited. It sounded great, it was exactly what I wanted to do. It was an association management firm that provided services for a variety of clients so I wouldn&apos;t be stuck working on the same things over and over again.
I interviewed and got the job and right after graduation I started working full time. Eventually I worked my way up the ladder to Senior Web Developer, and I was the lead developer and system architect for all our web projects in a team of three. I learned more and more about ColdFusion, and development in general, over the years there, and it really prepared me for where I am today.
Today, I have my own development company, n42 Designs, and I work full time for a consulting firm here in CT, that provides IT services, primarily for clients in the healthcare industry.
</description>
<category>ColdFusion</category>
<pubDate>Mon, 01 Aug 2011 09:06:00 -0400</pubDate>
<guid>http://www.n42designs.com/blog/index.cfm/2011/8/1/How-I-Got-Started-in-ColdFusion</guid>
</item>
<item>
<title>FarCry Poll Plugin</title>
<link>http://www.n42designs.com/blog/index.cfm/2011/6/14/FarCry-Poll-Plugin</link>
<description>
I have released a plugin I have had for a while. I&apos;m not sure why I never got around to releasing it. Its a very simple FarCry plugin that gives you the ability to create a one question poll and display it on the site. It uses a couple content types and a rule.
To install, copy the files to /farcry/plugins/spcPoll and add &quot;spcPoll&quot; to your &quot;this.plugins&quot; setting in your FarCry constructor. Deploy the content types in the COAPI manager and restart the application. You can now create a question, assign answers to it, and deploy that question using the &quot;Poll: Display Poll&quot; rule.
You can grab the code on &lt;a href=&quot;http://www.binpress.com/app/farcry-polls-plugin/474&quot;&gt;Binpress&lt;/a&gt; or &lt;a href=&quot;https://github.com/seancoyne/FarCry-Polling-Plugin&quot;&gt;Github&lt;/a&gt;. Its also attached to this entry via the download link below.
Let me know what you think!
</description>
<category>FarCry</category>
<category>ColdFusion</category>
<pubDate>Tue, 14 Jun 2011 11:20:00 -0400</pubDate>
<guid>http://www.n42designs.com/blog/index.cfm/2011/6/14/FarCry-Poll-Plugin</guid>
<enclosure url="http://www.n42designs.com/blog/enclosures/seancoyne-FarCry-Polling-Plugin-051fa00.zip" length="23404" type="application/zip"/>
</item>
<item>
<title>A FarCry plugin for Hoth: ColdFusion Exception Tracking</title>
<link>http://www.n42designs.com/blog/index.cfm/2011/2/17/A-FarCry-plugin-for-Hoth-ColdFusion-Exception-Tracking</link>
<description>
Just a quick note to mention that I have released a FarCry plugin for the Hoth exception tracking framework. If you are interested take a look at the code on &lt;a href=&quot;https://github.com/seancoyne/farcryhoth&quot;&gt;GitHub&lt;/a&gt; and let me know what you think.
I have also included a zip file of the code attached to this entry.
</description>
<category>FarCry</category>
<category>Hoth</category>
<category>ColdFusion</category>
<pubDate>Thu, 17 Feb 2011 15:04:00 -0400</pubDate>
<guid>http://www.n42designs.com/blog/index.cfm/2011/2/17/A-FarCry-plugin-for-Hoth-ColdFusion-Exception-Tracking</guid>
<enclosure url="http://www.n42designs.com/blog/enclosures/farcryhoth.zip" length="31412" type="application/zip"/>
</item>
<item>
<title>SVN, Apache, and mod_caucho, oh my</title>
<link>http://www.n42designs.com/blog/index.cfm/2009/11/30/SVN-Apache-and-modcaucho-oh-my</link>
<description>
I recently set up a new &lt;a href=&quot;http://www.viviotech.net/?rid=n42designs&quot;&gt;Viviotech&lt;/a&gt; VPS and ran into an issue that was easy to fix once I realized what was happening, but difficult to debug.
I set up Railo running on the Resin server using Apache as a front end with mod_caucho.
In my httpd.conf file I had the following lines:
&lt;code&gt;
LoadModule caucho_module /usr/lib/httpd/modules/mod_caucho.so
ResinConfigServer localhost 6800
CauchoConfigCacheDirectory /tmp
CauchoStatus yes
&lt;/code&gt;
This causes Resin to handle all requests from apache. The resin configuration files tell resin which URLs to handle.
I also had an SVN server set up so I had a configuration file in /etc/httpd/conf.d/ to set up subversion.
All my SVN repositories are under the location /svn.
So reading SVN repositories worked fine, but I kept getting &quot;path not found&quot; errors when committing new files. After debugging this for quite a while using Fiddler, and other means, I finally realized that Resin was actually handling the PUT http request and, finding no file, returned a 404.
So to fix this, and simply have Apache handle any request to /svn/ I modifed my httpd.conf file as follows:
&lt;code&gt;
LoadModule caucho_module /usr/lib/httpd/modules/mod_caucho.so
&lt;LocationMatch ^((?!/svn/).)*$&gt;
ResinConfigServer localhost 6800
CauchoConfigCacheDirectory /tmp
CauchoStatus yes
&lt;/LocationMatch&gt;
&lt;/code&gt;
then restarted Apache.
Now apache handles any requests to /svn/* and Resin handles all other requests. Hopefully this helps future Googlers in need.
</description>
<category>Subversion</category>
<category>Apache</category>
<category>Railo</category>
<pubDate>Mon, 30 Nov 2009 11:01:00 -0400</pubDate>
<guid>http://www.n42designs.com/blog/index.cfm/2009/11/30/SVN-Apache-and-modcaucho-oh-my</guid>
</item>
<item>
<title>Filtering a CFGrid</title>
<link>http://www.n42designs.com/blog/index.cfm/2009/8/12/Filtering-a-CFGrid</link>
<description>
&lt;p&gt;So you
want to filter a CFGrid huh? ColdFusion makes this
easy!&lt;/p&gt;
&lt;p&gt;First you need a CFC method that will return the
query used to populate the grid. This method should take the cfgrid
parameters and the value you want to filter
on.&lt;/p&gt;
&lt;p&gt;data.cfc:&lt;/p&gt;
&lt;code&gt;
&lt;cfcomponent&gt;
&lt;cffunction name=&quot;getdata&quot; access=&quot;remote&quot; output=&quot;false&quot;
returntype=&quot;Any&quot;&gt;
&lt;cfargument name=&quot;page&quot;
required=&quot;false&quot; default=&quot;1&quot; type=&quot;Numeric&quot; /&gt;
&lt;cfargument name=&quot;pagesize&quot; required=&quot;false&quot; default=&quot;10&quot; type=&quot;Numeric&quot;
/&gt;
&lt;cfargument name=&quot;sortcolumn&quot; required=&quot;false&quot;
default=&quot;&quot; type=&quot;string&quot; /&gt;
&lt;cfargument name=&quot;sortdir&quot;
required=&quot;false&quot; default=&quot;ASC&quot; type=&quot;string&quot; /&gt;
&lt;cfargument name=&quot;filter&quot; required=&quot;false&quot; default=&quot;&quot; type=&quot;String&quot;
/&gt;&gt;
&lt;cfset q =
queryNew(&apos;id,name&apos;,&apos;integer,varchar&apos;) /&gt;
&lt;cfset queryaddrow(q,1) /&gt;
&lt;cfset querysetcell(q,&apos;id&apos;,1)
/&gt;
&lt;cfset querysetcell(q,&apos;name&apos;,&apos;sean&apos;) /&gt;
&lt;cfset queryaddrow(q,1) /&gt;
&lt;cfset
querysetcell(q,&apos;id&apos;,2) /&gt;
&lt;cfset
querysetcell(q,&apos;name&apos;,&apos;phillip&apos;) /&gt;
&lt;cfset queryaddrow(q,1) /&gt;
&lt;cfset querysetcell(q,&apos;id&apos;,3)
/&gt;
&lt;cfset querysetcell(q,&apos;name&apos;,&apos;steve&apos;) /&gt;
&lt;cfquery name=&quot;q&quot; dbtype=&quot;query&quot;&gt;
select * from q
&lt;cfif
len(trim(arguments.filter))&gt;
where name like &lt;cfqueryparam cfsqltype=&quot;cf_sql_varchar&quot;
value=&quot;%#arguments.filter#%&quot; /&gt;
&lt;/cfif&gt;
&lt;cfif
len(trim(arguments.sortcolumn)) or len(trim(arguments.sortdir))&gt;
order by #arguments.sortcolumn# #arguments.sortdir#
&lt;/cfif&gt;
&lt;/cfquery&gt;
&lt;cfreturn
queryConvertForGrid(q,arguments.page,arguments.pageSize) /&gt;
&lt;/cffunction&gt;
&lt;/cfcomponent&gt;
&lt;/code&gt;
&lt;p&gt;You can see here that I am just
hard coding the query in, you would replace this with your cfquery call
to your database or a call to your service layer, etc. Once you have
your query results, you want to use the queryConvertForGrid method to
format the result to a value that CFGrid can work
with.&lt;/p&gt;
&lt;p&gt;You then need a cfgrid! The trick here is how to
get the grid to refresh as the user types a value in the filter box.
ColdFusion Ajax UI tools have bind expressions that let us bind one
control to another, and to react to events.
&lt;/p&gt;
&lt;p&gt;index.cfm:&lt;/p&gt;
&lt;code&gt;
&lt;cfform&gt;
&lt;p&gt;&lt;label for=&quot;filter&quot;&gt;&lt;cfinput type=&quot;text&quot; name=&quot;filter&quot;
id=&quot;filter&quot; /&gt;&lt;/p&gt;
&lt;cfgrid format=&quot;html&quot;
bind=&quot;cfc:data.getData({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},{filter@keyup})&quot;
name=&quot;grd&quot; bindonload=&quot;true&quot;&gt;
&lt;cfgridcolumn name=&quot;id&quot; /&gt;
&lt;cfgridcolumn name=&quot;name&quot; /&gt;
&lt;/cfgrid&gt;
&lt;/cfform&gt;
&lt;/code&gt;
&lt;p&gt;You can see my bind expression in the
cf grid. It will call the getData method of my data.cfc and pass in the
value from the &quot;filter&quot; input box whenever the key is released.
ColdFusion provides other events you can react to as well, check the
docs for details.&lt;/p&gt;
&lt;p&gt;So now if you run index.cfm you will see
a simple form with a text input and a grid. the grid will load when the
page is run (bindonload=&quot;true&quot;) and as you type in the text box, the
results are filtered.&lt;/p&gt;
&lt;p&gt;EDIT: removed the example link as I have moved this blog to &lt;a href=&quot;http://www.getrailo.org/&quot;&gt;Railo&lt;/a&gt;&lt;/p&gt;
</description>
<category>Web Development</category>
<category>ColdFusion</category>
<pubDate>Wed, 12 Aug 2009 09:23:00 -0400</pubDate>
<guid>http://www.n42designs.com/blog/index.cfm/2009/8/12/Filtering-a-CFGrid</guid>
</item>
<item>
<title>ValidatorCFC Update</title>
<link>http://www.n42designs.com/blog/index.cfm/2009/8/3/ValidatorCFC-Update</link>
<description>
Just a
quick note, thanks again to &lt;a
href=&quot;http://www.aarongreenlee.com/&quot;&gt;Aaron Greenlee&lt;/a&gt; I have some
small modifications to &lt;a
href=&quot;http://validatorcfc.riaforge.org/&quot;&gt;ValidatorCFC&lt;/a&gt;.
The
modifications allow you to return a struct where the key is the name of
the field in your object, and the value is true/false indicating if it
passed validation.
This is useful if you prefer more control when
showing informative messages to the user.
The zip file is
attached to this entry as well as at &lt;a
href=&quot;http://validatorcfc.riaforge.org/&quot;&gt;RIAForge&lt;/a&gt;.
</description>
<category>ValidatorCFC</category>
<category>ColdFusion</category>
<pubDate>Mon, 03 Aug 2009 11:56:00 -0400</pubDate>
<guid>http://www.n42designs.com/blog/index.cfm/2009/8/3/ValidatorCFC-Update</guid>
<enclosure url="http://www.n42designs.com/blog/enclosures/validatorCFC.0.3.zip" length="27082" type="application/zip"/>
</item>
<item>
<title>Adobe releases hotfix for
FCKEditor issue</title>
<link>http://www.n42designs.com/blog/index.cfm/2009/7/8/Adobe-releases-hotfix-for-FCKEditor-issue</link>
<description>
Adobe has released a hotfix for the FCKeditor issue.
You can find it &lt;a
href=&quot;http://www.adobe.com/support/security/bulletins/apsb09-09.html&quot;&gt;here&lt;/a&gt;.
Take
notice that it says to first stop the CF service and then access the CF
administrator. This is impossible. Simple open the administrator first
and apply the hot fix on the system info screen.
Also,
Mac
(linux too??) users should know that if you unzip the cfide.zip file to
the cfide folder it will replace the folder not merge the files like on
windows. You will be left without a working CFIDE folder. You should
manually merge the files.
</description>
<category>ColdFusion</category>
<pubDate>Wed, 08 Jul 2009 15:02:00 -0400</pubDate>
<guid>http://www.n42designs.com/blog/index.cfm/2009/7/8/Adobe-releases-hotfix-for-FCKEditor-issue</guid>
</item>
<item>
<title>Quick Note</title>
<link>http://www.n42designs.com/blog/index.cfm/2009/5/28/Quick-Note</link>
<description>
Just a quick note
to say that the zip file on RiaForge for ValidatorCFC (&lt;a
href=&quot;http://validatorcfc.riaforge.org/&quot;&gt;http://validatorcfc.riaforge.org/&lt;/a&gt;)
was incorrect. Thanks to Bill D (&lt;a
href=&quot;http://brainbox.tv/&quot;&gt;http://brainbox.tv&lt;/a&gt;) for the head&apos;s up.
I also attached it to this post. Use the download link below.
</description>
<category>ValidatorCFC</category>
<category>ColdFusion</category>
<pubDate>Thu, 28 May 2009 10:35:00 -0400</pubDate>
<guid>http://www.n42designs.com/blog/index.cfm/2009/5/28/Quick-Note</guid>
<enclosure url="http://www.n42designs.com/blog/enclosures/validatorCFC.0.2.71.zip" length="20867" type="application/x-zip-compressed"/>
</item>
<item>
<title>Follow me on Twitter</title>
<link>http://www.n42designs.com/blog/index.cfm/2009/4/22/Follow-me-on-Twitter</link>
<description>
&lt;a
href=&quot;http://twitter.com/nickel4242&quot;&gt;http://twitter.com/nickel4242&lt;/a&gt;
</description>
<category>ColdFusion</category>
<pubDate>Wed, 22 Apr 2009 14:48:00 -0400</pubDate>
<guid>http://www.n42designs.com/blog/index.cfm/2009/4/22/Follow-me-on-Twitter</guid>
</item>
<item>
<title>Update to ValidatorCFC</title>
<link>http://www.n42designs.com/blog/index.cfm/2009/2/28/Update-to-ValidatorCFC</link>
<description>
I
released a new version of ValidatorCFC. Aaron Greenlee (&lt;a
href=&quot;http://www.aarongreenlee.com&quot;&gt;http://www.aarongreenlee.com&lt;/a&gt;)
sent me some changes. With his changes, you can now specify which
properties you want validated. So even if in your object you say that
last name and first name are required, if you pass in only the last name
property, only that field will be validated. There is more info within
the CFC itself, and in the test files in the zip. You can download the
zip file using the download link on this entry, or from &lt;a
href=&quot;http://validatorcfc.riaforge.org/&quot;&gt;RIAForge&lt;/a&gt;.
</description>
<category>ValidatorCFC</category>
<category>ColdFusion</category>
<pubDate>Sat, 28 Feb 2009 09:53:00 -0400</pubDate>
<guid>http://www.n42designs.com/blog/index.cfm/2009/2/28/Update-to-ValidatorCFC</guid>
<enclosure url="http://www.n42designs.com/blog/enclosures/validatorCFC.0.2.7.zip" length="1622" type="application/x-zip-compressed"/>
</item>
</channel></rss>