Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: fixing what textareas do to input

by httptech (Chaplain)
on Jun 05, 2000 at 18:55 UTC ( [id://16414]=note: print w/replies, xml ) Need Help??

in reply to fixing what textareas do to input

In addition to using the s/\r\n/\n/g style expression to even out the linefeeds, you may want to set the textarea to WRAP="NONE" to force the user to do their own linefeeds. If you let the browser do the wrapping you may get inconsistent results.

Replies are listed 'Best First'.
RE:(2) fixing what textareas do to input
by swiftone (Curate) on Jun 05, 2000 at 19:02 UTC
    Except of course that that leads to annoyed users :)
      heh that's how the textareas work on Perl Monks (at least in my browser)... I don't find it annoying in the least. I rather like being able to choose where my lines break. I find it annoying when the browser wants to choose for me.
        True, but in some situations it isn't good. For example, I use Textreas to allow editing of text snippets on our page. Since the user will be cut-and-pasting text, I don't want to rely on the linebreaks in it.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://16414]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-06-19 13:31 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.