word wrapping in textarea


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: word wrapping in textarea

  1. #1
    neko Guest

    word wrapping in textarea

    Hi all,

    I'm looking for a way to preserve the text formatting from a textarea.
    In this moment, no matter how many lines of text I have, I submit the text,
    then I retrieve it (simply to and from an ASP page) and the new-lines are
    turned into spaces.

    Is there a way to keep the new-lines ?

    Thank you in advance.
    --
    Best regards,
    Bogdan Ionita [NEKO]




  2. #2
    Lei Shi Guest

    Re: word wrapping in textarea


    Use the wrap attribute of textarea. set it to "hard".

    "neko" <neko@home.ro> wrote:
    >Hi all,
    >
    >I'm looking for a way to preserve the text formatting from a textarea.
    >In this moment, no matter how many lines of text I have, I submit the text,
    >then I retrieve it (simply to and from an ASP page) and the new-lines are
    >turned into spaces.
    >
    >Is there a way to keep the new-lines ?
    >
    >Thank you in advance.
    >--
    >Best regards,
    >Bogdan Ionita [NEKO]
    >
    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center