how to limit number of rows in a textarea

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default how to limit number of rows in a textarea

    :confused;
    I have a problem with limiting the textarea to a certain number of rows -
    after I specify the number of lines to 4 or any other number it just doesn't
    stop, it keeps moving without any limit. Could you please help me to overcome
    this problem? I tried with all 'wrap' options and it didn't work. I need this
    feature on my pages, because I have to limit the amount of text that they input
    to the database.
    What should I do to make this work?

    Thanks in advance...Ryna



    ryna Guest

  2. Similar Questions and Discussions

    1. Number of rows in a datagrid
      I discovered the hard way that the property "VisibleRowCount" of a datagrid is ONLY that, the number of visible rows, NOT the number of populated...
    2. How to limit # of rows returned from query
      I am looking at setting a limit to the number of rows returned on some of my queries. I was looking at doing something like: <cfoutput...
    3. number of rows
      Hi all: Can anybody tell me how can I know how many rows, indexes and fields there are in every table on my database ? Thanks in advance. ...
    4. #16189 [Com]: limit in lenght of textarea from a php page
      ID: 16189 Comment by: dario at designitup dot com Reported By: zrm at 52000 dot com dot cn Status: Bogus Bug...
    5. Textarea - Limit Amount of Characters?
      "Ralph Freshour" <ralph@primemail.com> wrote in message news:cr6bkvc5rsi9o355ff50c7746iu0omq6kk@4ax.com... I suspect *limiting* the amount of...
  3. #2

    Default Re: how to limit number of rows in a textarea

    Hi Ryna,

    If I understand your question correctly, you need to limit the amount of
    characters entered in the textarea so the character limit does not exceed
    your database field limit. You can use a javascript function to perform
    this check, and or, you can use server-side code to check the length of the
    textarea value.

    Hope this helps.
    Regards,
    -D-


    "ryna" <webforumsuser@macromedia.com> wrote in message
    news:dpekcv$mlr$1@forums.macromedia.com...
    > :confused;
    > I have a problem with limiting the textarea to a certain number of rows -
    > after I specify the number of lines to 4 or any other number it just
    doesn't
    > stop, it keeps moving without any limit. Could you please help me to
    overcome
    > this problem? I tried with all 'wrap' options and it didn't work. I need
    this
    > feature on my pages, because I have to limit the amount of text that they
    input
    > to the database.
    > What should I do to make this work?
    >
    > Thanks in advance...Ryna
    >
    >
    >


    -D- Guest

  4. #3

    Default Re: how to limit number of rows in a textarea

    Thanks for your response, but my problem still exists...I'm not good with JS,
    only VBScript and VB.NET, and this web application has been developed using
    ASP, so I can't use VB.NET to solve the problem. Could you be able to provide
    me with the code, please?
    Thanks in advance...


    ryna Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139