• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Text Area- Wrap Attribute

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I use IE5. I entered four points in text area field . When I tried displaying it in another page there was no line break, instead all the 4 staments were grouped as a paragraph. I used wrap attribute, but it is not working.
<textarea name=test cols=40 rows=7 wrap=physical> </textarea>
Please give me suggestions.
Thanks
Deepa
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i just looked int the html reference. it says the possible values of wrap are:
hard
soft
off

no mention of physical. it also says wrap is deprecated and not to use it.
http://www.w3schools.com/html/attr_textarea.asp
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How are you displaying what returns on the subsequent page? If the "physical" attribute is doing what you expect (see previous post) and inserting "\n" characters at your line breaks, simply displaying that string on an HTML page will not result in display line breaks. HTML treats "\n" as whitespace. If this is the problem, you'll probably need to replace all instances of "\n" with "<br>" (or "<br />" for XHTML).
hth,
bear
 
Randall Twede
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
oh i didnt understand what he meant.
 
And then we all jump out and yell "surprise! we got you this tiny ad!"
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic