Re: Textarea question

Discussion in 'HTML' started by Tim Streater, Jul 29, 2009.

  1. Tim Streater

    Tim Streater Guest

    In article <>,
    sheldonlg <sheldonlg> wrote:

    > sheldonlg wrote:
    > > I have what should be a simple question. On a form with a textarea, how
    > > do you make it so that the user can start a new paragraph? Hitting
    > > Enter causes the page to submit. I have searched in Google, but all I
    > > have found is how to put text in there pro programmatically so that
    > > there are separate paragraphs. i know it can be done since I have seen
    > > sites that have it.
    > >
    > > I am including the javascript newsgroup in case it requires js to work.

    >
    > Adding to this question: Is it possible to force a new line in a text
    > field? If so, how do we do that so that the user can type it in?


    It would also be nice if one could have the textarea expand vertically
    to accommodate all the text it contains. I've had to do this by
    adjusting the number of lines in an approximate way - not very
    satisfactory.

    --
    Tim

    "That excessive bail ought not to be required, nor excessive fines imposed,
    nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
    Tim Streater, Jul 29, 2009
    #1
    1. Advertising

  2. Tim Streater

    dorayme Guest

    In article <>,
    Tim Streater <> wrote:

    > In article <>,
    > sheldonlg <sheldonlg> wrote:
    >
    > > sheldonlg wrote:
    > > > I have what should be a simple question. On a form with a textarea, how
    > > > do you make it so that the user can start a new paragraph? Hitting
    > > > Enter causes the page to submit. I have searched in Google, but all I
    > > > have found is how to put text in there pro programmatically so that
    > > > there are separate paragraphs. i know it can be done since I have seen
    > > > sites that have it.
    > > >
    > > > I am including the javascript newsgroup in case it requires js to work.

    > >
    > > Adding to this question: Is it possible to force a new line in a text
    > > field? If so, how do we do that so that the user can type it in?

    >
    > It would also be nice if one could have the textarea expand vertically
    > to accommodate all the text it contains. I've had to do this by
    > adjusting the number of lines in an approximate way - not very
    > satisfactory.


    As a maker of forms, be generous in the first place, vertical space on a
    web page is not gold dust. As a user, you have at least two options to
    deal with the miserly, pinched, ungenerous, mean, insensitive, silly,
    practice of teensy weensy text areas: use a text editor of some sort and
    cut and paste, or use what amounts to a tailored automatic version of
    this specially for text areas on the Firefox browser, "It's all text",
    an add-on.

    But you are right that it would be nice for this to happen auto while
    typing away. There are some scripting solutions. Take a look, for
    example at this discussion:

    <http://markos.gaivo.net/blog/?p=198>

    --
    dorayme
    dorayme, Jul 29, 2009
    #2
    1. Advertising

  3. Tim Streater

    Tim Streater Guest

    In article <>,
    dorayme <> wrote:

    > In article <>,
    > Tim Streater <> wrote:


    [snip]

    > > It would also be nice if one could have the textarea expand vertically
    > > to accommodate all the text it contains. I've had to do this by
    > > adjusting the number of lines in an approximate way - not very
    > > satisfactory.

    >
    > As a maker of forms, be generous in the first place, vertical space on a
    > web page is not gold dust. As a user, you have at least two options to
    > deal with the miserly, pinched, ungenerous, mean, insensitive, silly,
    > practice of teensy weensy text areas: use a text editor of some sort and
    > cut and paste, or use what amounts to a tailored automatic version of
    > this specially for text areas on the Firefox browser, "It's all text",
    > an add-on.
    >
    > But you are right that it would be nice for this to happen auto while
    > typing away. There are some scripting solutions. Take a look, for
    > example at this discussion:
    >
    > <http://markos.gaivo.net/blog/?p=198>


    Thanks for the pointer; I will read it through.

    --
    Tim

    "That excessive bail ought not to be required, nor excessive fines imposed,
    nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
    Tim Streater, Jul 30, 2009
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jukka K. Korpela

    Re: basic textarea question

    Jukka K. Korpela, Jul 15, 2003, in forum: HTML
    Replies:
    0
    Views:
    374
    Jukka K. Korpela
    Jul 15, 2003
  2. Mel
    Replies:
    1
    Views:
    408
    Jukka K. Korpela
    Feb 3, 2004
  3. Augustus
    Replies:
    1
    Views:
    333
    Ken Schaefer
    Sep 10, 2003
  4. Textarea Inside of a textarea

    , Feb 4, 2006, in forum: ASP General
    Replies:
    6
    Views:
    311
    Anthony Jones
    Feb 5, 2006
  5. Replies:
    1
    Views:
    293
    Bart Van der Donck
    Jul 4, 2007
Loading...

Share This Page