Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Properly displaying large amounts of data....

Status
Not open for further replies.

TonyU

Technical User
Feb 14, 2001
1,317
US
[tt]

I have a textarea field in my form where users will input upto 200 characters or more.

My problem right now is properly displaying that data. Right now, my data shows like:

Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah


But I need it to display like this in my table:
blah blah blah blah blah blah
blah blah blah blah blah blah
blah blah blah blah blah blah
blah blah blah blah blah blah

How should I approach this? Thanks in advance.

[tt]"A Successful man is one who can build
a firm foundation with the bricks
that others throw at him"
[/tt]

banana.gif
rockband.gif
banana.gif
 
you need to replace the control feed & line breaks )(chr(13)& chr(10)) with <BR> to keep the formatting the same

strText=replace(strText, chr(13), &quot;<BR>&quot;)



Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
When you say displaying the data, are you referring to the output of the data once the form has been submitted or the appearance of the text while the user is imputting the information into your form? Please clarify.
 
[tt]
Displaying the data after it has been submitted, and I'm not displaying the form data, but displaying the record from the database once entered. I'm creating a session variable of the just entered ID number and using that.
[tt]&quot;A Successful man is one who can build
a firm foundation with the bricks
that others throw at him&quot;
[/tt]

banana.gif
rockband.gif
banana.gif
 
try using

<%= replace(datatxt,vbcrlf,&quot;<br>&quot;) %>

while displaying the data from the record in the db.

 
Hi Tony:

The textarea field has an attribute called &quot;Wrap&quot; which is set by default to &quot;Off&quot;. You can set the value of the &quot;Wrap&quot; to &quot;Virtual&quot; which wraps the text in the textarea but is actually stored as a string of text without CRLF (line breaks). You want to set the value of &quot;Wrap&quot; to &quot;Physical&quot; which wraps the text in the textarea AND stores it with the line breaks. Your textarea will look something like the code below:

<textarea name=&quot;message&quot; Wrap=&quot;Physical&quot;></textarea>

Your text will be stored as:


blah blah blah blah
blah blah blah blah
 
If I understand correctly you currently accept up to 200 characters fro ma user by giving them a textarea. Now you would like to display this information back to them in a block that you control the width of...
How about using something like a div and set the wrap using CSS as well as the width?
-Tarwn The three most dangerous things in the world are a programmer with a soldering iron, a hardware type with a program patch, and a user with an idea
-computer saying (Wiz Biz - Rick Cook)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top