House of Fusion
Home of the ColdFusion Community

Search cf-talk

December 02, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31       

Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

Formatting Issue

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 

12/27/2006 01:21 PM
Author:
Bruce Sorge

This is a continuation of yesterdays email. I have a textarea field that the customer can enter free text in. When they hit enter it starts a new line. When it is stored in the database the line breaks are there (text is separated by spaces is how it looks when I query the field). When I output it using paragraphFormat the first group of text is formatted bold like it should be. But the next paragraphs are not bold. I am using a standard cfoutput query to output the information. The code looks like this: <cfoutput query="myquerynamehere"> <p> <font face="Arial, Helvetica, sans-serif">    <strong> #ParagraphFormat(Boundaries)#</strong>     </font></p> </cfoutput> No need to comment on the in-line style using the FONT tag. I am wrapping it all in a css later on. The issue is that when the information is output, it looks like this: North: (going east) Beverly Hills border/Whitworth Drive, when west of Robertson Blvd.; Beverly Hills border/Gregory Way when east of Robertson Blvd. South: (going east) 10 freeway, Robertson Blvd. Off-ramp, Exposition Blvd. along Culver City border. West: (going south) Roxbury Drive (Hillcrest Country Club east lot edge), Beverwil Drive (including attached cul-de-sacs), Shelby Drive, and National Blvd. East: La Cienega Blvd. (west side of street only, boulevard is shared with adjacent Neighborhood COUNCIL). As I stated earlier in the message, the first paragraph (North:.....) is in bold, but the other three are not. How can I make it so all of the paragraphs are bold? Thanks, -- Bruce Sorge

12/27/2006 01:38 PM
Author:
Ian Skinner

As I stated earlier in the message, the first paragraph (North:.....) is in bold, but the other three are not. How can I make it so all of the paragraphs are bold? Thanks, -- Bruce Sorge Show us the HTML source of the displayed code not just the browser rendering.  That may provide some insight. Without building a working example of your issue, I can not imagine any reason for the behavior you are describing. -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA --------- | 1 |   | ---------  Binary Soduko |   |   | --------- "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice:  This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message.

12/27/2006 01:44 PM
Author:
Bruce Sorge

OK. Give me a few minutes. I just cleared the database and I am entering in the data again. And I have to turn off the cfdocument tag. On 12/27/06, Ian Skinner <ian.skinner@bloodsource.org> wrote:

12/27/2006 01:45 PM
Author:
Ian Skinner

As I stated earlier in the message, the first paragraph (North:.....) is in bold, but the other three are not. How can I make it so all of the paragraphs are bold? Thanks, -- Bruce Sorge Please use the "View Source" feature of the browser and if that does not provide you an answer.  If not post the results here so we can see what HTML is being returned by your CFML code.  Without that I do not know why it is displaying as you are describing and I am unwilling to build a complete example to generate the HTML for myself. -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA --------- | 1 |   | ---------  Binary Soduko |   |   | --------- "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice:  This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message.

12/27/2006 02:48 PM
Author:
Bruce Sorge

OK, I think that i narrowed it down. When I remove the CFDOCUMENT tag, the HTML renders properly. When I use FlashPaper or PDF the formatting is not correct. I lose the bold in some of the elements. Any thoughts?

12/27/2006 02:52 PM
Author:
Ian Skinner

When I use FlashPaper or PDF the formatting is not correct. I lose the bold in some of the elements. Any thoughts? Nothing to concrete; I've not used those features much.  But maybe they are more sensitive to end of line characters then HTML is. Can you write your own <paraFormat()> function that puts the strong on each paragraph instead of around the entire content.  Or better yet, use CSS to style the paragraphs themselves.  I believe <CFdocument...> is pretty good at simple CSS.  Advanced positioning not so much, but making text bold should not be a problem. -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA --------- | 1 |   | ---------  Binary Soduko |   |   | --------- "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice:  This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message.

12/27/2006 03:02 PM
Author:
Bruce Sorge

Yeah, that is the next thing on my list of things to do, put everything in CSS. These guys are not using style sheets. I did do <p style="font-weight:bold"> and that did not work either. Oh well, I will search the docs to see if anyone else has seen this. Bruce Sorge On 12/27/06, Ian Skinner <ian.skinner@bloodsource.org> wrote:

12/27/2006 03:14 PM
Author:
Ian Skinner

I did do <p style="font-weight:bold"> and that did not work either. Oh well, I will search the docs to see if anyone else has seen this. Where did you put this code?  Was it somewhere that got applied to all paragraphs? It should be fairly simple to try this bit of CSS which should make all paragraphs in the display bold.  IIRC you need to make sure the style sheet is included inside the <cfdocument...> tag for best effect. <cfdocument ...> <html>   <head>     <style>       p {font-weight:bold}     </style>   </head>   <body>     ...   </body> </html> </cfdocument> -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA --------- | 1 |   | ---------  Binary Soduko |   |   | --------- "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice:  This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message.


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists