try this "Trim(string)" this will remove all white space from the beginning
and end of your string. ex. if you have a user form field named "blahblah"
you could write #Trim(blahblah)#.
hope this answers your questions. good luck.
cheers,
nelson
----Original Message Follows----
From: "Milks, Jim" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: CF-Talk <[EMAIL PROTECTED]>
Subject: OT: Does JavaScript have a Trim function?
Date: Tue, 19 Dec 2000 13:04:52 -0500
Received: from [207.31.122.140] by hotmail.com (3.2) with ESMTP id
MHotMailBC08FEC500B040043113CF1F7A8C091985; Tue Dec 19 11:37:32 2000
Received: from houseoffusion.com ([207.31.122.140]) by
www.houseoffusion.com (Post.Office MTA v3.5.3 release 223 ID#
0-54969U100L100S0V35) with ESMTP id com for
<[EMAIL PROTECTED]>; Tue, 19 Dec 2000 13:16:20 -0500
>From [EMAIL PROTECTED] Tue Dec 19 11:39:11 2000
Message-id: <0160C6B4BB54D41182AB0001024294B00682DB@EXCHANGE>
Hi All,
Just wondering if there is an easy way to trim leading and trailing spaces
with JavaScript?
Jim
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists