<?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"
	>
<channel>
	<title>Comments on: 21 Time-Saving Snippets for Any ColdFusion Developer</title>
	<atom:link href="http://www.jasonbartholme.com/21-time-saving-snippets-for-any-coldfusion-developer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasonbartholme.com/21-time-saving-snippets-for-any-coldfusion-developer/</link>
	<description>Synapses Firing In All Directions</description>
	<pubDate>Fri, 29 Aug 2008 22:28:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: sam</title>
		<link>http://www.jasonbartholme.com/21-time-saving-snippets-for-any-coldfusion-developer/#comment-37756</link>
		<dc:creator>sam</dc:creator>
		<pubDate>Fri, 20 Jun 2008 14:42:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasonbartholme.com/2008/01/08/21-time-saving-snippets-for-any-coldfusion-developer/#comment-37756</guid>
		<description>thanks for taking time to put this together</description>
		<content:encoded><![CDATA[<p>thanks for taking time to put this together</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wen</title>
		<link>http://www.jasonbartholme.com/21-time-saving-snippets-for-any-coldfusion-developer/#comment-26263</link>
		<dc:creator>Wen</dc:creator>
		<pubDate>Fri, 07 Mar 2008 00:30:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasonbartholme.com/2008/01/08/21-time-saving-snippets-for-any-coldfusion-developer/#comment-26263</guid>
		<description>This is related to the Import to excel using . If I want to remove some content prior to exporting to excel, what should I do? 

For example, I don't want to export some radio buttons which are displayed on the top of the table rows for sorting column. I want to skip this sort by row. Thank you! 

-Wen</description>
		<content:encoded><![CDATA[<p>This is related to the Import to excel using . If I want to remove some content prior to exporting to excel, what should I do? </p>
<p>For example, I don&#8217;t want to export some radio buttons which are displayed on the top of the table rows for sorting column. I want to skip this sort by row. Thank you! </p>
<p>-Wen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Fairbanks</title>
		<link>http://www.jasonbartholme.com/21-time-saving-snippets-for-any-coldfusion-developer/#comment-17040</link>
		<dc:creator>Adam Fairbanks</dc:creator>
		<pubDate>Wed, 09 Jan 2008 20:07:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasonbartholme.com/2008/01/08/21-time-saving-snippets-for-any-coldfusion-developer/#comment-17040</guid>
		<description>7) Cfmail basic

- Technically, from, to, and subject are the only required attributes. =)

- Since emails should generally be smtp authenticated, I suggest adding servername, username, and password (and maybe even cc) as attributes, since they would be commonly used

- And maybe even

servername="#application.mailservername#" username="#application.mailusername#" password="#application.mailpassword#" (or similar variables)

Putting these all into snippets is a great idea!</description>
		<content:encoded><![CDATA[<p>7) Cfmail basic</p>
<p>- Technically, from, to, and subject are the only required attributes. =)</p>
<p>- Since emails should generally be smtp authenticated, I suggest adding servername, username, and password (and maybe even cc) as attributes, since they would be commonly used</p>
<p>- And maybe even</p>
<p>servername=&#8221;#application.mailservername#&#8221; username=&#8221;#application.mailusername#&#8221; password=&#8221;#application.mailpassword#&#8221; (or similar variables)</p>
<p>Putting these all into snippets is a great idea!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Fairbanks</title>
		<link>http://www.jasonbartholme.com/21-time-saving-snippets-for-any-coldfusion-developer/#comment-17039</link>
		<dc:creator>Adam Fairbanks</dc:creator>
		<pubDate>Wed, 09 Jan 2008 20:06:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasonbartholme.com/2008/01/08/21-time-saving-snippets-for-any-coldfusion-developer/#comment-17039</guid>
		<description>5) Insert statement

- StringValue and NumericValue will probably be form.StringValue and form.NumericValue (or url.StringValue and url.NumericValue)

- #createodbcdate(now())# might more often be #CreateODBCDate&lt;b&gt;Time&lt;/b&gt;(Now())# (my capitalization means nothing)

6) Record ID of last row inserted

- another nit.. 'value' should be '#value#'.. and probably '#form.value#' (or '#url.value#')</description>
		<content:encoded><![CDATA[<p>5) Insert statement</p>
<p>- StringValue and NumericValue will probably be form.StringValue and form.NumericValue (or url.StringValue and url.NumericValue)</p>
<p>- #createodbcdate(now())# might more often be #CreateODBCDate<b>Time</b>(Now())# (my capitalization means nothing)</p>
<p>6) Record ID of last row inserted</p>
<p>- another nit.. &#8216;value&#8217; should be &#8216;#value#&#8217;.. and probably &#8216;#form.value#&#8217; (or &#8216;#url.value#&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Fairbanks</title>
		<link>http://www.jasonbartholme.com/21-time-saving-snippets-for-any-coldfusion-developer/#comment-17038</link>
		<dc:creator>Adam Fairbanks</dc:creator>
		<pubDate>Wed, 09 Jan 2008 20:04:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasonbartholme.com/2008/01/08/21-time-saving-snippets-for-any-coldfusion-developer/#comment-17038</guid>
		<description>Below is the rest of my post.... (Are the posts limited to 500 characters?)

3) Functions

- I agree with Raymond - use var scoping.

 (after the  line)

Also, it looks like the value of the variable in the query should be 

value="#arguments.FieldName4#"

rather than

value="#query.ID#"

4) Delete statement, Update statement, and Increment count

- This is a nit, but the variable name will most likely be #form.ID# (or #url.ID#) instead of #query.ID#</description>
		<content:encoded><![CDATA[<p>Below is the rest of my post&#8230;. (Are the posts limited to 500 characters?)</p>
<p>3) Functions</p>
<p>- I agree with Raymond - use var scoping.</p>
<p> (after the  line)</p>
<p>Also, it looks like the value of the variable in the query should be </p>
<p>value=&#8221;#arguments.FieldName4#&#8221;</p>
<p>rather than</p>
<p>value=&#8221;#query.ID#&#8221;</p>
<p>4) Delete statement, Update statement, and Increment count</p>
<p>- This is a nit, but the variable name will most likely be #form.ID# (or #url.ID#) instead of #query.ID#</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Bartholme</title>
		<link>http://www.jasonbartholme.com/21-time-saving-snippets-for-any-coldfusion-developer/#comment-17036</link>
		<dc:creator>Jason Bartholme</dc:creator>
		<pubDate>Wed, 09 Jan 2008 19:38:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasonbartholme.com/2008/01/08/21-time-saving-snippets-for-any-coldfusion-developer/#comment-17036</guid>
		<description>Hello Adam, 

Thanks for stopping by.  I added "SCOPE" to the alt row color snippet and also a name attribute to the form snip.

Good to know that iif() is slower.</description>
		<content:encoded><![CDATA[<p>Hello Adam, </p>
<p>Thanks for stopping by.  I added &#8220;SCOPE&#8221; to the alt row color snippet and also a name attribute to the form snip.</p>
<p>Good to know that iif() is slower.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Fairbanks</title>
		<link>http://www.jasonbartholme.com/21-time-saving-snippets-for-any-coldfusion-developer/#comment-17027</link>
		<dc:creator>Adam Fairbanks</dc:creator>
		<pubDate>Wed, 09 Jan 2008 18:25:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasonbartholme.com/2008/01/08/21-time-saving-snippets-for-any-coldfusion-developer/#comment-17027</guid>
		<description>Jason - great snippets!

Here are a few comments for refinement:

1) Alternate row color

- might want to add the scope to the variable (q.currentrow instead of currentrow)
- if the background is already white (which it often is), you can use a simple  instead of #iif(), since iff is generally slower.

 bgcolor="##efefef"&#62;

or with a css class:

 class="row"&#62;

2) Forms

- it might be useful to add a name attribute to the form tag</description>
		<content:encoded><![CDATA[<p>Jason - great snippets!</p>
<p>Here are a few comments for refinement:</p>
<p>1) Alternate row color</p>
<p>- might want to add the scope to the variable (q.currentrow instead of currentrow)<br />
- if the background is already white (which it often is), you can use a simple  instead of #iif(), since iff is generally slower.</p>
<p> bgcolor=&#8221;##efefef&#8221;&gt;</p>
<p>or with a css class:</p>
<p> class=&#8221;row&#8221;&gt;</p>
<p>2) Forms</p>
<p>- it might be useful to add a name attribute to the form tag</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Fairbanks</title>
		<link>http://www.jasonbartholme.com/21-time-saving-snippets-for-any-coldfusion-developer/#comment-17018</link>
		<dc:creator>Adam Fairbanks</dc:creator>
		<pubDate>Wed, 09 Jan 2008 16:49:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasonbartholme.com/2008/01/08/21-time-saving-snippets-for-any-coldfusion-developer/#comment-17018</guid>
		<description>Jason - great snippets!

Here are a few comments for refinement:

1) Alternate row color

- might want to add the scope to the variable (q.currentrow instead of currentrow)
- if the background is already white (which it often is), you can use a simple  instead of #iif(), since iff is generally slower.

 bgcolor="##efefef"&#62;

or with a css class:

 class="row"&#62;

2) Forms

- it might be useful to add a name attribute to the form tag

3) Functions

- I agree with Raymond - use var scoping.

 (after the  line)

Also, it looks like the value of the variable in the query should be 

value="#arguments.FieldName4#"

rather than

value="#query.ID#"

4) Delete statement, Update statement, and Increment count

- This is a nit, but the variable name will most likely be #form.ID# (or #url.ID#) instead of #query.ID#

5) Insert statement

- StringValue and NumericValue will probably be form.StringValue and form.NumericValue (or url.StringValue and url.NumericValue)

- #createodbcdate(now())# might more often be #CreateODBCDate&lt;b&gt;Time&lt;/b&gt;(Now())# (my capitalization means nothing)

6) Record ID of last row inserted

- another nit.. 'value' should be '#value#'.. and probably '#form.value#' (or '#url.value#')

7) Cfmail basic

- Technically, from, to, and subject are the only required attributes. =)

- Since emails should generally be smtp authenticated, I suggest adding servername, username, and password (and maybe even cc) as attributes, since they would be commonly used

- And maybe even

servername="#application.mailservername#" username="#application.mailusername#" password="#application.mailpassword#" (or similar variables)

Putting these all into snippets is a great idea!</description>
		<content:encoded><![CDATA[<p>Jason - great snippets!</p>
<p>Here are a few comments for refinement:</p>
<p>1) Alternate row color</p>
<p>- might want to add the scope to the variable (q.currentrow instead of currentrow)<br />
- if the background is already white (which it often is), you can use a simple  instead of #iif(), since iff is generally slower.</p>
<p> bgcolor=&#8221;##efefef&#8221;&gt;</p>
<p>or with a css class:</p>
<p> class=&#8221;row&#8221;&gt;</p>
<p>2) Forms</p>
<p>- it might be useful to add a name attribute to the form tag</p>
<p>3) Functions</p>
<p>- I agree with Raymond - use var scoping.</p>
<p> (after the  line)</p>
<p>Also, it looks like the value of the variable in the query should be </p>
<p>value=&#8221;#arguments.FieldName4#&#8221;</p>
<p>rather than</p>
<p>value=&#8221;#query.ID#&#8221;</p>
<p>4) Delete statement, Update statement, and Increment count</p>
<p>- This is a nit, but the variable name will most likely be #form.ID# (or #url.ID#) instead of #query.ID#</p>
<p>5) Insert statement</p>
<p>- StringValue and NumericValue will probably be form.StringValue and form.NumericValue (or url.StringValue and url.NumericValue)</p>
<p>- #createodbcdate(now())# might more often be #CreateODBCDate<b>Time</b>(Now())# (my capitalization means nothing)</p>
<p>6) Record ID of last row inserted</p>
<p>- another nit.. &#8216;value&#8217; should be &#8216;#value#&#8217;.. and probably &#8216;#form.value#&#8217; (or &#8216;#url.value#&#8217;)</p>
<p>7) Cfmail basic</p>
<p>- Technically, from, to, and subject are the only required attributes. =)</p>
<p>- Since emails should generally be smtp authenticated, I suggest adding servername, username, and password (and maybe even cc) as attributes, since they would be commonly used</p>
<p>- And maybe even</p>
<p>servername=&#8221;#application.mailservername#&#8221; username=&#8221;#application.mailusername#&#8221; password=&#8221;#application.mailpassword#&#8221; (or similar variables)</p>
<p>Putting these all into snippets is a great idea!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Bartholme</title>
		<link>http://www.jasonbartholme.com/21-time-saving-snippets-for-any-coldfusion-developer/#comment-16946</link>
		<dc:creator>Jason Bartholme</dc:creator>
		<pubDate>Wed, 09 Jan 2008 05:03:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasonbartholme.com/2008/01/08/21-time-saving-snippets-for-any-coldfusion-developer/#comment-16946</guid>
		<description>Thanks for your comment's, Ray.  I fixed the DELETE statement and the grouped output to utilize the cfqueryparam.  Honestly, I didn't know of var scoping or it's importance of securing cfcs.  I'm going to look into it, revamp my cfcs, and run Mike Schierberl's &lt;a href="http://www.schierberl.com/varScoper/" rel="nofollow"&gt;varScoper&lt;/a&gt; tool that you mentioned in your blog.</description>
		<content:encoded><![CDATA[<p>Thanks for your comment&#8217;s, Ray.  I fixed the DELETE statement and the grouped output to utilize the cfqueryparam.  Honestly, I didn&#8217;t know of var scoping or it&#8217;s importance of securing cfcs.  I&#8217;m going to look into it, revamp my cfcs, and run Mike Schierberl&#8217;s <a href="http://www.schierberl.com/varScoper/" rel="nofollow">varScoper</a> tool that you mentioned in your blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raymond Camden</title>
		<link>http://www.jasonbartholme.com/21-time-saving-snippets-for-any-coldfusion-developer/#comment-16942</link>
		<dc:creator>Raymond Camden</dc:creator>
		<pubDate>Wed, 09 Jan 2008 04:28:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasonbartholme.com/2008/01/08/21-time-saving-snippets-for-any-coldfusion-developer/#comment-16942</guid>
		<description>A few notes. First off - your first queries are missing cfqueryparam. You do use it later, but you need to be consistent and use it -anywhere- you have dynamic data in your query.

Your first function example doesn't use var scoping. That's considered _very_ bad practice.</description>
		<content:encoded><![CDATA[<p>A few notes. First off - your first queries are missing cfqueryparam. You do use it later, but you need to be consistent and use it -anywhere- you have dynamic data in your query.</p>
<p>Your first function example doesn&#8217;t use var scoping. That&#8217;s considered _very_ bad practice.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<br />
<b>Warning</b>:  stristr() [<a href='function.stristr'>function.stristr</a>]: Empty delimiter. in <b>/nfs/c02/h04/mnt/40765/domains/jasonbartholme.com/html/wp-content/plugins/wassup/wassup.php</b> on line <b>2093</b><br />
