I have had a similar problem with TEXTAREA.  I like to format my code,
so when I wrote my code I formatted the TEXTAREA tag, complete with a
return and tabs before the #textvalue# and a return and tabs before the
close TEXTAREA.  All of the characters between the TEXTAREA tags got put
into the textarea box, including the returns and tabs.  I removed all of
the formatting between the TEXTAREA tags so that it looked like
<TEXTAREA ...>#textvalue#</TEXTAREA> and it fixed my problem.

Does this help?

Nancy

-----Original Message-----
From: Wucher, Stephane [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 3:33 PM
To: Spectra-Talk
Subject: RE: Spectra and Multilingual


Thanks Raymond,

I've tried the TRIM, but the property is already clean, there is no
blank
spaces before or after the data. It seems to come from the <cfoutput>.

I will try to use the ContentObjectGet instead of the handler.

Thanks

-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: lundi 12 mars 2001 17:41
To: Spectra-Talk
Subject: RE: Spectra and Multilingual


> 1. I use this cfa_handler as a display handler.
> But I want to display the property in a TEXTAREA and I have not only
the
> content but a lot of blank lines before and after the content !
> Is there a solution to avoid these blank lines ?

Multiple solutions:
1) In your edit handler, before you save the data, do a Trim on it.
2) When you display foo.prop, do Trim(Foo.Prop)

The first solution is best since it does the trim when saving the
object.
It's always better to do cleanup when editing/creating the object since
that
happens a lot LESS than displaying the object.

> 2. If not (or to test), I've tried to create a GET handler.
> For that I took the standard "get.cfm" file and changed it as follow:
>

You should not modify the default get handler unless you really know
what
you are doing. Probably the only time you will need to use a get handler
(and you should use one for your type, don't mess with the default one)
is
when you are using external objects. If you just want to get an object,
don't call contentobject method="get", just use contentobjectget or
contentobjectgetmultiple.

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Allaire

Email   : [EMAIL PROTECTED]
ICQ UIN : 3679482

"My ally is the Force, and a powerful ally it is." - Yoda
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to