Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-03-28 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found