Does anyone know how I would limit the amount of text a user can enter
into a textarea?
It's limited to rows * cols chars innit ?
~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
i guess it is compare with fieldname.length.
---
The information transmitted is intended
This is what I use.
cfif #Len(form.fieldname)# GT 750
SCRIPT LANGUAGE=JavaScript TYPE=text/javascript
!--
alert ('Your Description exceeds the space alotted. If more detail
is required submit description as Word document file.')
[EMAIL PROTECTED] wrote:
i guess it is compare with fieldname.length.
Almost, it is compared with formname.value.length like in the example
below. Doesn't work flawlessly (one can paste stuff into the field
without pressing a key), but it is a start.
textarea name=text onkeypress=return
Jochem van Dieten wrote:
[EMAIL PROTECTED] wrote:
i guess it is compare with fieldname.length.
Almost, it is compared with formname.value.length
Correction, should be: fieldname.value.length
Jochem
~~
Structure your ColdFusion code with
readonly type=text name=remLen3 size=3 maxlength=3 value=250
characters still available in the notes field
-Original Message-
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]]
Sent: 20 August 2001 10:53
To: CF-Talk
Subject: Re: Limiting text entered into TextArea
[EMAIL PROTECTED] wrote:
i
I have some code for this! Email me directly at [EMAIL PROTECTED]
or (do what I did) check out www.javascript-source.com
Peter Tilbrook
ColdFusion Applications Developer
Australia New Zealand Food Authority
Boeing House
55 Blackall Street
BARTON ACT 2600
Ph: +61-2-6271 2256
Fax: +61-2-6271
: Limiting text entered into TextArea
I have some code for this! Email me directly at
[EMAIL PROTECTED] or (do what I did) check out
www.javascript-source.com
Peter Tilbrook
ColdFusion Applications Developer
Australia New Zealand Food Authority
Boeing House
55 Blackall Street
BARTON ACT 2600
Thanks everyone for your help on this one!
-Original Message-
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]]
Sent: 20 August 2001 10:53
To: CF-Talk
Subject: Re: Limiting text entered into TextArea
[EMAIL PROTECTED] wrote:
i guess it is compare with fieldname.length.
Almost
9 matches
Mail list logo