Re: Eliminating Textarea Whitespaces on UDF retuned values

2006-06-21 Thread Denny Valliant
Did you specify output="false" for your function?  Could be that simple...
:D

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:
> 
> #foovar#
>
>
> However, this creates the whitespaces:
> #methodname(number)#
>
> Now its just basically understanding what triggers one over the other.
> Hmmm.
>
> Again many Thanks!!
>


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244504
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


RE: Eliminating Textarea Whitespaces on UDF retuned values

2006-06-21 Thread Michael E. Carluen
Yes, it is actually #methodname(number)#

So there is definitely something in  that is literally being
"seen" within the .



-Original Message-
From: Rob Wilkerson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 21, 2006 5:12 PM
To: CF-Talk
Subject: Re: Eliminating Textarea Whitespaces on UDF retuned values

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


#methodName ( number )#


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:
> 
> #foovar#
>
>
> However, this creates the whitespaces:
> #methodname(number)#
>
> 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:244500
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Eliminating Textarea Whitespaces on UDF retuned values

2006-06-21 Thread Rob Wilkerson
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


#methodName ( number )#


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:
> 
> #foovar#
>
>
> However, this creates the whitespaces:
> #methodname(number)#
>
> 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


RE: Eliminating Textarea Whitespaces on UDF retuned values

2006-06-21 Thread Michael E. Carluen
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:

#foovar#


However, this creates the whitespaces:
#methodname(number)#

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:244498
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


Re: Eliminating Textarea Whitespaces on UDF retuned values

2006-06-21 Thread Rob Wilkerson
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:244497
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Eliminating Textarea Whitespaces on UDF retuned values

2006-06-21 Thread Rob Wilkerson
You could also try using a regex to strip \s*:

REReplaceNoCase ( textAreaString, '^\s*', '' )

-- 

Rob Wilkerson

On 6/21/06, Nathan Strutz <[EMAIL PROTECTED]> wrote:
> It could be chr(160) - the literal character for the non-breaking space
> ( ). Trimming won't cut it out. Instead, try a replace on it.
>
> replace(myString,chr(160),"","ALL")
>
>
> -nathan strutz
> http://www.dopefly.com/
>
>
> 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:244496
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


Re: Eliminating Textarea Whitespaces on UDF retuned values

2006-06-21 Thread Nathan Strutz
It could be chr(160) - the literal character for the non-breaking space
( ). Trimming won't cut it out. Instead, try a replace on it.

replace(myString,chr(160),"","ALL")


-nathan strutz
http://www.dopefly.com/


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:244488
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54