RE: Limiting text entered into TextArea

2001-08-20 Thread Thomas Chiverton
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

Re: Limiting text entered into TextArea

2001-08-20 Thread sanathr
i guess it is compare with fieldname.length. --- The information transmitted is intended

Re: Limiting text entered into TextArea

2001-08-20 Thread James Taavon
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.')

Re: Limiting text entered into TextArea

2001-08-20 Thread Jochem van Dieten
[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

Re: Limiting text entered into TextArea

2001-08-20 Thread Jochem van Dieten
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

RE: Limiting text entered into TextArea

2001-08-20 Thread Mark Smyth
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

RE: Limiting text entered into TextArea

2001-08-20 Thread Peter Tilbrook
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

RE: Limiting text entered into TextArea

2001-08-20 Thread Billy Cravens
: 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

RE: Limiting text entered into TextArea

2001-08-20 Thread Nick Betts
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