Personally, I like paragraphformat() as long as it is understood that it
converts a single newline pair to white space and a double pair to a p tag.
Also, I would think you would have to use at least a virtual or soft wrap
attribute otherwise Netscape will just go off the side of the page...
Seth

----- Original Message -----
From: "Sicular, Alexander" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, April 02, 2001 7:14 PM
Subject: RE: returns in text boxes?


> jeff,
>
> you need to mess with the wrap attribute of textarea. values are off,
> soft(virtual), and hard(physical). each has specific meaning in how text
is
> sent to the server.
>
> from http://developer.netscape.com/docs/manuals/htmlguid/index.htm:
>
> OFF disables word wrap. Text the user types is displayed with the exact
line
> breaks that the user types. If the user explicitly inserts a line break,
> however, the break is included as part of the text area's value. The user
> has to scroll horizontally to see the ends of lines that do not fit in the
> text area element.
>
> HARD causes word wrap, and the line breaks are included when the form is
> submitted. The text wraps inside the text area element, and that the user
> does not need to scroll horizontally.
>
> SOFT causes word wrap, but the line breaks are not included when the form
is
> submitted.
>
> now remember that line breaks don't show in browsers.  you need to replace
> chr(13)chr(10) with <br>.  chr(13) is the ASCII for Carriage Return and
> chr(10) is ASCII for Line Feed. together they make a 'microsoft new line',
> CRLF. in Unix it is just chr(10). you may want to experiment with
> HTMLEditFormat(string [, version ]) and HTMLCodeFormat(string [,
version ]).
> i like putting the string in a list with the delim CRLF. then you can do
> things with it.
>
> good luck,
>
> Alexander Sicular
> Technical Director, Information Technology
> The Neurological Institute of New York
> Columbia University
> 212.305.1318
> [EMAIL PROTECTED]
>
>
> > -----Original Message-----
> > From: Jeff Fongemie [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, April 02, 2001 6:53 PM
> > To: CF-Talk
> > Subject: returns in text boxes?
> >
> >
> > Hello all,
> >
> >   Is there a way to have a multi-line textbox recognize carriage
> >   returns? I have a couple of sites using a simple form for content
> >   updates and I'd love for my clients to be able to just hit "enter"
> >   and have a new line start that will be recorded in the database, and
> >   then on the final <cfoutput>.
> >
> >   I've looked a little at the custom tags for WYSIWYG style entry
> >   forms, but I don't need anything that complicated or complex.
> >
> >
> > Best regards,
> >  Jeff Fongemie                          mailto:[EMAIL PROTECTED]
> > ------------------------
> > Internet Guns For Hire
> > (603) 356-0768
> >
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to