Thanks, Conrad. I'll give that a try. Looks like it should do the trick.
----- Original Message ----- From: Conrad Classen To: CF-Talk Sent: Tuesday, March 19, 2002 1:42 PM Subject: RE: <textarea> headache Dina First off. Before writing the data, replace all instances of vbCRLF with Chr(10). In JavaScript vbCRLF is rendered as \r\n, and you only require the \n part. Once the field is populated, I find that the best way to reinstate the line breaks Is to do the following: var re = /\\n/g; frm.FieldName.value = frm.FieldName.value.replace(re, "\n"); I'm not sure why this is necessary, but it works every time. Conrad -----Original Message----- From: Dina Hess [mailto:[EMAIL PROTECTED]] Sent: 19 March 2002 08:41 PM To: CF-Talk Subject: OT: <textarea> headache Hi all, Sorry for the OT post, but I'm hoping one of you can put an end to my ongoing headache with textareas. First off, I'm not working in ColdFusion on this one...it's ASP...and I've already checked Google and the CF-Talk archives. Here's what I'm trying to do: 1) maintain linefeeds/carriage returns, 2) maintain stylesheet formatting, and 3) maintain virtual wrapping. If I use <pre> to preserve linefeeds and carriage returns, I always lose virutal wrapping and the font-family setting in the textarea style. So far, the *best* solution I've discovered can preserve stylesheet formatting and virtual wrapping but does not keep linefeeds/carriage returns intact. Can someone please help me out? I'm open to any and all suggestions. TYIA, Dina ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

