[thelist] Re: Textarea (Kevin)

Kevin krr at ix.netcom.com
Wed Jun 27 10:20:12 CDT 2001


>Message: 22
>From: "Eveline Vanhemel" <eveline_vanhemel at pi.be>
>To: "EVolt MailingList" <thelist at lists.evolt.org>
>Date: Wed, 27 Jun 2001 10:22:08 +0200
>charset="iso-8859-1"
>Subject: [thelist] Re: Textarea

>You can't use the MAXLENGTH attribute in combination with a <TEXTAREA>
>element, only in combination with <INPUT TYPE="text">. What you can do is
>give values to the attributes COLS and ROWS, but they only give you the
>ability to set the visual representation of the <TEXTAREA> element. To my
>knowledge there is no way to set a limit to <TEXTAREA> input, at least I
>think so, but maybe somebody could correct this.

Reply-To: thelist at lists.evolt.org

~~~~~~~~~~~~~~~~~~~~~~~~~~
What if you used javascript to grab and parse the string?
Then when the char count hit XX you kick in a alert or
an onfocus=this.blur.

The alert would tell them that there input would truncated to
XX. You could give them a visual by simply displaying their
input into a popup window.

Food for thought...

Kevin


Message: 22
From: "Eveline Vanhemel" <eveline_vanhemel at pi.be>
To: "EVolt MailingList" <thelist at lists.evolt.org>
Date: Wed, 27 Jun 2001 10:22:08 +0200
charset="iso-8859-1"
Subject: [thelist] Re: Textarea
Reply-To: thelist at lists.evolt.org

Hi Sal,

You can't use the MAXLENGTH attribute in combination with a <TEXTAREA>
element, only in combination with <INPUT TYPE="text">. What you can do is
give values to the attributes COLS and ROWS, but they only give you the
ability to set the visual representation of the <TEXTAREA> element. To my
knowledge there is no way to set a limit to <TEXTAREA> input, at least I
think so, but maybe somebody could correct this.

HTH,

Eveline
eveline_vanhemel at pi.be









More information about the thelist mailing list