<?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: ColdFusion Function: character counting textarea with limit</title>
	<atom:link href="http://www.webveteran.com/blog/index.php/web-coding/coldfusion/coldfusion-function-character-counting-textarea-with-limit/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webveteran.com/blog/index.php/web-coding/coldfusion/coldfusion-function-character-counting-textarea-with-limit/</link>
	<description>Programming: coldfusion, php, javascript, sql, css, scriptaculous, seo</description>
	<lastBuildDate>Wed, 30 Jun 2010 14:15:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jules</title>
		<link>http://www.webveteran.com/blog/index.php/web-coding/coldfusion/coldfusion-function-character-counting-textarea-with-limit/comment-page-1/#comment-281</link>
		<dc:creator>Jules</dc:creator>
		<pubDate>Wed, 31 Dec 2008 17:59:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.webveteran.com/blog/index.cfm/2008/9/22/CF-Function-character-counting-textarea-with-limit#comment-281</guid>
		<description>Hm, I&#039;ve never done this before. So would this work in application.cfm?

&lt;pre&gt;[sourcecode language=&quot;coldfusion&quot;]&lt;cfif not isdefined(&quot;application.utils&quot;) or isdefined(&quot;url.reinit&quot;)&gt;
  &lt;cflock scope=&quot;Application&quot; type=&quot;Exclusive&quot; timeout=30&gt;
    &lt;cfset application.utils = createObject(&quot;component&quot;,&quot;path.to.utils&quot;)&gt;
  &lt;/cflock&gt;
&lt;/cfif&gt;[/sourcecode]&lt;/pre&gt;

Is the cflock necessary?</description>
		<content:encoded><![CDATA[<p>Hm, I&#8217;ve never done this before. So would this work in application.cfm?</p>
<pre></pre>
<pre class="brush: coldfusion;">&lt;cfif not isdefined(&quot;application.utils&quot;) or isdefined(&quot;url.reinit&quot;)&gt;
  &lt;cflock scope=&quot;Application&quot; type=&quot;Exclusive&quot; timeout=30&gt;
    &lt;cfset application.utils = createObject(&quot;component&quot;,&quot;path.to.utils&quot;)&gt;
  &lt;/cflock&gt;
&lt;/cfif&gt;</pre>
<p>Is the cflock necessary?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane Zehnder</title>
		<link>http://www.webveteran.com/blog/index.php/web-coding/coldfusion/coldfusion-function-character-counting-textarea-with-limit/comment-page-1/#comment-280</link>
		<dc:creator>Shane Zehnder</dc:creator>
		<pubDate>Wed, 31 Dec 2008 16:24:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.webveteran.com/blog/index.cfm/2008/9/22/CF-Function-character-counting-textarea-with-limit#comment-280</guid>
		<description>Components stored in the application-scope are created once per application.</description>
		<content:encoded><![CDATA[<p>Components stored in the application-scope are created once per application.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jules</title>
		<link>http://www.webveteran.com/blog/index.php/web-coding/coldfusion/coldfusion-function-character-counting-textarea-with-limit/comment-page-1/#comment-279</link>
		<dc:creator>Jules</dc:creator>
		<pubDate>Wed, 31 Dec 2008 15:37:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.webveteran.com/blog/index.cfm/2008/9/22/CF-Function-character-counting-textarea-with-limit#comment-279</guid>
		<description>&lt;a href=&quot;#comment-278&quot; rel=&quot;nofollow&quot;&gt;@andy matthews&lt;/a&gt; 
Isn&#039;t the application scope also stored once for each visitor? I&#039;ll admit I&#039;m somewhat green in this area. Any explanation is appreciated!</description>
		<content:encoded><![CDATA[<p><a href="#comment-278" rel="nofollow">@andy matthews</a><br />
Isn&#8217;t the application scope also stored once for each visitor? I&#8217;ll admit I&#8217;m somewhat green in this area. Any explanation is appreciated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andy matthews</title>
		<link>http://www.webveteran.com/blog/index.php/web-coding/coldfusion/coldfusion-function-character-counting-textarea-with-limit/comment-page-1/#comment-278</link>
		<dc:creator>andy matthews</dc:creator>
		<pubDate>Wed, 31 Dec 2008 15:18:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.webveteran.com/blog/index.cfm/2008/9/22/CF-Function-character-counting-textarea-with-limit#comment-278</guid>
		<description>Better to load something like this into the Application scope. Why have a CFC stored once in memory for each visitor when you could store it once in the Application scope and reference it (with new values) any time you needed it?</description>
		<content:encoded><![CDATA[<p>Better to load something like this into the Application scope. Why have a CFC stored once in memory for each visitor when you could store it once in the Application scope and reference it (with new values) any time you needed it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jules</title>
		<link>http://www.webveteran.com/blog/index.php/web-coding/coldfusion/coldfusion-function-character-counting-textarea-with-limit/comment-page-1/#comment-110</link>
		<dc:creator>Jules</dc:creator>
		<pubDate>Sat, 06 Dec 2008 03:59:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.webveteran.com/blog/index.cfm/2008/9/22/CF-Function-character-counting-textarea-with-limit#comment-110</guid>
		<description>Hi Eva, sorry I didn&#039;t see your question until today when I was notified of Lou&#039;s comment.

To load the cfc into a variable, you can set it up when you start a session. Like so:
&lt;pre&gt;&lt;cfset session.utils = createObject(&quot;component&quot;,&quot;path.to.utils&quot;)&gt;&lt;/pre&gt;
And make sure the file name is &#039;utils.cfc&#039; (or update your createObject accordingly).

What I meant by &quot;The value is preloaded from a CFQuery called ‘read’&quot; is that there would be a query that gets the textarea&#039;s value from a database. In the examples above, the CFQuery&#039;s name is &#039;read&#039; and the fieldname is &#039;metadesc&#039;.</description>
		<content:encoded><![CDATA[<p>Hi Eva, sorry I didn&#8217;t see your question until today when I was notified of Lou&#8217;s comment.</p>
<p>To load the cfc into a variable, you can set it up when you start a session. Like so:</p>
<pre>&lt;cfset session.utils = createObject("component","path.to.utils")&gt;</pre>
<p>And make sure the file name is &#8216;utils.cfc&#8217; (or update your createObject accordingly).</p>
<p>What I meant by &#8220;The value is preloaded from a CFQuery called ‘read’&#8221; is that there would be a query that gets the textarea&#8217;s value from a database. In the examples above, the CFQuery&#8217;s name is &#8216;read&#8217; and the fieldname is &#8216;metadesc&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lou</title>
		<link>http://www.webveteran.com/blog/index.php/web-coding/coldfusion/coldfusion-function-character-counting-textarea-with-limit/comment-page-1/#comment-101</link>
		<dc:creator>Lou</dc:creator>
		<pubDate>Fri, 05 Dec 2008 08:09:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.webveteran.com/blog/index.cfm/2008/9/22/CF-Function-character-counting-textarea-with-limit#comment-101</guid>
		<description>Good questions :) I am very intrigued.</description>
		<content:encoded><![CDATA[<p>Good questions <img src='http://www.webveteran.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I am very intrigued.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eva</title>
		<link>http://www.webveteran.com/blog/index.php/web-coding/coldfusion/coldfusion-function-character-counting-textarea-with-limit/comment-page-1/#comment-47</link>
		<dc:creator>Eva</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.webveteran.com/blog/index.cfm/2008/9/22/CF-Function-character-counting-textarea-with-limit#comment-47</guid>
		<description>How do you load the CFC into a session variable called &#039;utils&#039;?
What does this mean &quot;The value is preloaded from a CFQuery called &#039;read&#039;.&quot;</description>
		<content:encoded><![CDATA[<p>How do you load the CFC into a session variable called &#8216;utils&#8217;?<br />
What does this mean &quot;The value is preloaded from a CFQuery called &#8216;read&#8217;.&quot;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
