I am trying to prevent the max number of characters in my textarea.
Unfortunately that is not a common with Textareas.  I have other options as
far as fixing my problem but one of the possible solutions is preventing a
paste and keypress with an onKeyPress and OnPaste event.  Here is an example
of what I would do with a non-dbforms textarea.

<textarea onKeyPress="return ( this.value.length < 2 );" onPaste="return ((
this.value.length + window.clipboardData.getData('Text').length) < 2
);"></textarea>

Unfortunately the tld doesn't recognize onPaste.  There is probably a good
reason for this (it's not a standard over all browsers I'm sure).  I was
just wondering why.

Eric Hickam
Computer Specialist 325a
Austin Automation Center
Cell: 512-585-4319
Wk: 512-326-6485


Attachment: Hickam, Eric.vcf
Description: Binary data

Reply via email to