RE: [cfaussie] textareas the returns

2012-04-23 Thread charlie arehart
Could be. I'll note that I created a textareaformat CF custom tag and UDF
for just such challenges as Brian brought up. I created it over 10 years ago
but it's still used by many having this need. More at:

http://www.systemanage.com/cff/cf_textareaformat.cfm

 

/charlie

 

From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf
Of Barry Beattie
Sent: Sunday, April 22, 2012 10:48 PM
To: cfaussie@googlegroups.com
Subject: Re: [cfaussie] textareas the returns

 

Steve: is there any situations where pre/pre wouldn't work/be a good
idea? That used to be my preference.

On Mon, Apr 23, 2012 at 12:42 PM, Brian Knott bkn...@jbk.com.au wrote:

Had a look at Paragraph forma but it replace single returns with spaces and
double returns with p.  Not sure why it replaces with spaces, but that
what the documentaion says.

Brian

 

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] textareas the returns

2012-04-22 Thread Steve Onnis
Depends

 

You can use pre or you can use #ParagraphFormat([textareaValue])# which
will take each return and split the value into paragraphs using the p tag

 

Steve

 

From: Brian Knott [mailto:bkn...@jbk.com.au] 
Sent: Monday, 23 April 2012 12:20 PM
To: cfaussie
Subject: [cfaussie] textareas the returns

 

Just a quick one guys.

If I put a return in a text area, now can I force the text to show those
returns when I display the field on a HTML page.

If I edit the vaue in a text area again the returns are there but if I just
display the value, the returns are ignored.

thanks

Brian

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] textareas the returns

2012-04-22 Thread Brian Knott
Had a look at Paragraph forma but it replace single returns with spaces and 
double returns with p.  Not sure why it replaces with spaces, but that 
what the documentaion says.

Brian


 From: Steve Onnis st...@cfcentral.com.au
Sent: Monday, 23 April 2012 12:23 PM
To: cfaussie@googlegroups.com
Subject: RE: [cfaussie] textareas the returns

  Depends   You can use pre or you can use 
#ParagraphFormat([textareaValue])# which will take each return and split 
the value into paragraphs using the p tag   SteveFrom: Brian Knott 
[mailto:bkn...@jbk.com.au] 
Sent: Monday, 23 April 2012 12:20 PM
To: cfaussie
Subject: [cfaussie] textareas the returnsJust a quick one guys.

If I put a return in a text area, now can I force the text to show those 
returns when I display the field on a HTML page.

If I edit the vaue in a text area again the returns are there but if I just 
display the value, the returns are ignored.

thanks

Brian -- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.  

  -- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.

 

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] textareas the returns

2012-04-22 Thread Brian Knott
Got is solved.

Use pre and set the display style to inline

i.e. pre style=display:inline#form.field#/pre

thanks for the help

Brian


 From: Steve Onnis st...@cfcentral.com.au
Sent: Monday, 23 April 2012 12:23 PM
To: cfaussie@googlegroups.com
Subject: RE: [cfaussie] textareas the returns

  Depends   You can use pre or you can use 
#ParagraphFormat([textareaValue])# which will take each return and split 
the value into paragraphs using the p tag   SteveFrom: Brian Knott 
[mailto:bkn...@jbk.com.au] 
Sent: Monday, 23 April 2012 12:20 PM
To: cfaussie
Subject: [cfaussie] textareas the returnsJust a quick one guys.

If I put a return in a text area, now can I force the text to show those 
returns when I display the field on a HTML page.

If I edit the vaue in a text area again the returns are there but if I just 
display the value, the returns are ignored.

thanks

Brian -- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.  

  -- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.

 

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] textareas the returns

2012-04-22 Thread Barry Beattie
Steve: is there any situations where pre/pre wouldn't work/be a good
idea? That used to be my preference.

On Mon, Apr 23, 2012 at 12:42 PM, Brian Knott bkn...@jbk.com.au wrote:

 Had a look at Paragraph forma but it replace single returns with spaces
 and double returns with p.  Not sure why it replaces with spaces, but
 that what the documentaion says.

 Brian



 --
 *From*: Steve Onnis st...@cfcentral.com.au
 *Sent*: Monday, 23 April 2012 12:23 PM
 *To*: cfaussie@googlegroups.com
 *Subject*: RE: [cfaussie] textareas the returns


  Depends



 You can use pre or you can use #ParagraphFormat(*[textareaValue]*)#
 which will take each return and split the value into paragraphs using the
 p tag



 Steve



 *From:* Brian Knott [mailto:bkn...@jbk.com.au]
 *Sent:* Monday, 23 April 2012 12:20 PM
 *To:* cfaussie
 *Subject:* [cfaussie] textareas the returns



 Just a quick one guys.

 If I put a return in a text area, now can I force the text to show those
 returns when I display the field on a HTML page.

 If I edit the vaue in a text area again the returns are there but if I
 just display the value, the returns are ignored.

 thanks

 Brian

 --
 You received this message because you are subscribed to the Google Groups
 cfaussie group.
 To post to this group, send email to cfaussie@googlegroups.com.
 To unsubscribe from this group, send email to
 cfaussie+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/cfaussie?hl=en.


 --
 You received this message because you are subscribed to the Google Groups
 cfaussie group.
 To post to this group, send email to cfaussie@googlegroups.com.
 To unsubscribe from this group, send email to
 cfaussie+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/cfaussie?hl=en.

  --
 You received this message because you are subscribed to the Google Groups
 cfaussie group.
 To post to this group, send email to cfaussie@googlegroups.com.
 To unsubscribe from this group, send email to
 cfaussie+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/cfaussie?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] textareas the returns

2012-04-22 Thread Steve Onnis
Also depends on the browser and operating system as some use \r and others
use \n for the new line characters.

 

The thing with using pre is that you don't have any control over the
spacing as you would with your p tags.

 

If it is just output you want, then yeah sure, pre will output it with the
breaks intact. If you need to have it continue with the flow and style of
the page then you will need to break it out into p blocks.

 

Otherwise you can try something like this

 

function pFormat(string) {

  // (\n\r) for intenet explorer

  // (\n\n) for mozilla

  var output = REReplaceNoCase(string, (\n\r)|(\n\n), \pp,
ALL);

  output = REReplaceNoCase(output, (\n), br /, ALL);

  return p#output#/p;

}

 

 

From: Barry Beattie [mailto:barry.beat...@gmail.com] 
Sent: Monday, 23 April 2012 12:48 PM
To: cfaussie@googlegroups.com
Subject: Re: [cfaussie] textareas the returns

 

Steve: is there any situations where pre/pre wouldn't work/be a good
idea? That used to be my preference.

On Mon, Apr 23, 2012 at 12:42 PM, Brian Knott bkn...@jbk.com.au wrote:

Had a look at Paragraph forma but it replace single returns with spaces and
double returns with p.  Not sure why it replaces with spaces, but that
what the documentaion says.

Brian

 

  _  

From: Steve Onnis st...@cfcentral.com.au
Sent: Monday, 23 April 2012 12:23 PM
To: cfaussie@googlegroups.com
Subject: RE: [cfaussie] textareas the returns

 

Depends

 

You can use pre or you can use #ParagraphFormat([textareaValue])# which
will take each return and split the value into paragraphs using the p tag

 

Steve

 

From: Brian Knott [mailto:bkn...@jbk.com.au] 
Sent: Monday, 23 April 2012 12:20 PM
To: cfaussie
Subject: [cfaussie] textareas the returns

 

Just a quick one guys.

If I put a return in a text area, now can I force the text to show those
returns when I display the field on a HTML page.

If I edit the vaue in a text area again the returns are there but if I just
display the value, the returns are ignored.

thanks

Brian

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

 

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com
mailto:cfaussie%2bunsubscr...@googlegroups.com .
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com
mailto:cfaussie%2bunsubscr...@googlegroups.com .
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

 

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.