CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Small problem with text area's

Print topic Send  topic

Author Message
Tom Meekers
Posted: 04/22/2002, 4:20 AM

I made a simple form with codecharge (Grid & Edit). On the edit page there is one field (message) that can contain a lot of text, so I used I textarea instead of a textbox. At the Grid page I displat this message in a label field like all the other fields. Now it seems that I can't display white lines between different alineas. All the text is just put togheter on one line. Is there a solution to this ? Because it is necessary that the text is displayed exactly as the user typed it (alineas, white lines, ...).

Don't know if this is a stupid question, but I would be gratefull for some help.
Alex Alexapolsky
Posted: 04/22/2002, 4:40 AM

See how it's done in Forum example , new line symbols
are replaced with <br> tags. You can do the same with other symbols.
Tom Meekers
Posted: 04/22/2002, 5:15 AM

I checked the forum example, copied the line "$fldmessage = str_replace("\n", "<br>", $fldmessage);" and it works ... But then I change the layout a bit (different colors, some background images) and then the text is show with <br> instead of white lines. So it says "Here comes a white line <br> <br>" instead of "Here comes a white line

" What could I be doing wrong ? I didn't change anything to the php code, just the html layout. The checkbox HTML is checked at the field message, and the line "$fldmessage = str_replace("\n", "<br>", $fldmessage);" is added at the 'before show' event.

I can't find the problem. :( Please help me ...
Nicole
Posted: 04/22/2002, 5:40 AM

Tom,
go to field properties and select 'HTML' flag
Tom Meekers
Posted: 04/22/2002, 5:50 AM

Oops, never mind. I solved the problem ... My mistake :)
Thx for helping.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.