How can I count the number of words in a form submission?

2000-05-24 Thread mark


Here's a new one for everyone...

Let's say for example I was collecting a paragraph of text via a web form and I wanted 
to check the total number of words entered.

How can that be done with ColdFusion? 

---mark




--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: How can I count the number of words in a form submission?

2000-05-24 Thread Steve Reich

Here's a new one for everyone...
Let's say for example I was collecting a paragraph of text via a web form
and I wanted to check the total number of words entered.
How can that be done with ColdFusion?

---mark


You could treat the paragraph as a list with the space as a delimeter.
That's probably where I'd start...

Steve

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: How can I count the number of words in a form submission?

2000-05-24 Thread Sharon DiOrio

Not so new.

#ListLen(FORM.textField, " ")#

List functions can be used for more than just lists. HTH!

Sharon

At 01:06 PM 5/24/2000 -0700, [EMAIL PROTECTED] wrote:

Here's a new one for everyone...

Let's say for example I was collecting a paragraph of text via a web form
and I wanted to check the total number of words entered.

How can that be done with ColdFusion? 

---mark




---
---
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
 

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: How can I count the number of words in a form submission?

2000-05-24 Thread Chris Montgomery

Mark,

Check this out.  It came through a couple days ago from the Javascript
Update list:

==
Forms - Limit Textarea

http://forms.javascriptsource.com/limit-textarea.html

1.37 KB * Uploaded May 22 2000

 This script controls a maximum textarea input amount and updates a
small counter with how many characters are left with each keystroke.

(Dynamic fix update now allows you to use this script in multiple
textboxes on a page.)
==

Hope that helps.

Chris Montgomery  [EMAIL PROTECTED]
:: Web development/Consulting  http://www.astutia.com ::
:: Allaire Consulting Partner / NetObjects Reseller   ::
:: 210-490-3249 / 888-745-7603 Fax 210-490-4692   ::
:: Find a Job in San Antonio   http://www.sajobnet.com::


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 24, 2000 3:06 PM
To: [EMAIL PROTECTED]
Subject: How can I count the number of words in a form submission?



Here's a new one for everyone...

Let's say for example I was collecting a paragraph of text via
a web form and I wanted to check the total number of words entered.

How can that be done with ColdFusion?

---mark

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: How can I count the number of words in a form submission?

2000-05-24 Thread Larry C. Lyons

Mark,

try the CF_CountWords custom tag from the Developers Gallery:

http://devex.allaire.com/developer/gallery/info.cfm?ID=CA347199-2830-11D4-AA9700508B94F380method=Full

hth,

larry

--
Larry C. Lyons
EBStor.com
8870 Rixlew Lane, Suite 201
Manassas, Virginia 20109-3795
tel: (703) 393-7930 x253
fax: (703) 393-2659
http://www.ebstor.com
http://www.pacel.com
email: [EMAIL PROTECTED]
Chaos, panic, and disorder - my work here is done.
--

[EMAIL PROTECTED] wrote:
 
 Here's a new one for everyone...
 
 Let's say for example I was collecting a paragraph of text via a web form and I 
wanted to check the total number of words entered.
 
 How can that be done with ColdFusion?
 
 ---mark
 
 --
 Archives: http://www.eGroups.com/list/cf-talk
 To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.