That is strange. Is that the true code where the spaces occur? It would make sense to me if the actual code was something like
<textarea> #methodName ( number )# </textarea> But your sample code is so compacted that I wonder where the whitespace is coming from... On 6/21/06, Michael E. Carluen <[EMAIL PROTECTED]> wrote: > Thanks Rob & Nathan. > > Actually I was able to come-up with a work-around. The workaround is to put > the value inside a local variable outside of the textarea. > > This does not create whitespaces: > <cfset foovar = methodname(number)> > <textarea>#foovar#</textarea> > > > However, this creates the whitespaces: > <textarea>#methodname(number)#</textarea> > > Now its just basically understanding what triggers one over the other. Hmmm. > > Again many Thanks!! > > > > > > > -----Original Message----- > From: Rob Wilkerson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 21, 2006 4:52 PM > To: CF-Talk > Subject: Re: Eliminating Textarea Whitespaces on UDF retuned values > > Sorry, I probably should have been more specific. The "\s" should > strip any representation of "standard" whitespace. Other non-printing > characters will not be stripped. You might want to try using the > asc() function to see what at least one of those characters might be: > > asc ( left ( myString, 1 ) ) > > If it's not a whitespace character, you may have to try something like: > > REReplace ( myString, '^[\s\xdd]*', '' ) > > Where, in this case the "dd" in the character class represents the > hexadecimal value of the non-printing character. > > On 6/21/06, Michael E. Carluen <[EMAIL PROTECTED]> wrote: > > I'm currently using a UDF that returns a simple alpha-num value. When > used > > inside a form textarea, the value generates several leading whitespace > > chars. Wrapping it in trim() doesn't work. Any suggestions? Thank you. > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244499 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54