[thelist] Two XHTML validity questions in a CF site

Aaron Cole awcole72 at hotmail.com
Thu Jul 12 22:23:00 CDT 2001


At 09:54 AM 7/12/2001, you wrote:
>Aaron Cole wrote:
>
>>I've been desperately attempting to get my personal CF site to validate
>>under the XHTML 1.0 Transitional DOCTYPE.  Only two glitches remain.
>>
>>1) I use the ParagraphFormat CF function which adds a <P> to posts every
>>time the user enters two hard returns.  Obviously, the lack of a closing
>>tag isn't kosher.  Are there any alternatives?  Adding a <br /> instead
>>would be great.
>
>Maybe you could use "replace('your_string', chr(10), '<br />' 'All')"? You
>could also use "chr(13)". You just need to replace the new line or
>carriage return delimiter (or both if you want to be picky) with the <br
>/> tag. Then wrap the entire contents in <p></p> tags.

Here's a thought.  Perusing the ColdFusion Developer's Exchange returned
CF_StyledParagraph.

http://devex.allaire.com/developer/gallery/info.cfm?ID=CA347134-2830-11D4-AA9700508B94F380&method=Full

It's slightly different from ParagraphFormat() I believe (I actually
haven't used it), but maybe you could work around it.

Maybe run Paragraph Format on a block of text, then run this custom tag on
a list (with <p> as the delimiter)?  My brain's kinda fried right now, but
I'm sure there is a potential workaround for this.

--Ben


<!-----------------------
Ben Dyer
Senior Internet Developer
Imaginuity Interactive
http://www.imaginuity.com
//---------------------->




I realize this may be above and beyond, but I'm having trouble getting 
<CF_StyledParagraph> to output text.

I tried the contact listed on the Allaire site. It turns out that doesn't 
exist anymore and the page they linked to for an exampe is also down.

In my code I have a variable, let's call it #foo#.

On its own, #foo# outputs fine.  When I place it in the <CF_StyledParagraph>
tag as such:

<CF_StyledParagraph theString = #foo#>

I get nothing.

Any ideas?

TIA
Aaron
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com





More information about the thelist mailing list