[thelist] maxlength on textarea? using JS?

Matthew Fischer mfischer at e-fishsolutions.com
Thu Sep 28 13:48:06 CDT 2000


That would work fine, in the script I took it from I use it as one of several validations before a form is submitted:

function tooLong() {

    if ((document.pageForm.Babble.value.length > 100) || (document.pageForm.callback.value.length < 7) || (document.pageForm.name.value == "")) {
    alert('Please include your name, a valid call-back number and/or limit your message length to 100 characters.');
    document.pageForm.Babble.focus();
    
    } else {
    document.pageForm.submit();
    
    }
    
}

On 9/28/00 at 2:04 PM, roselli at earthlink.net (aardvark) wrote:

> thanks... although i'll probably make it fire onBlur(), unless you can 
> think of any reason that would suck...
> 



^^^^^^^^  >e}e}}@>  ^^^^^^^^

Matt Fischer | e-fish solutions, inc.
877.WEB.FISH | 203.272.2987 | Fax 800.203.5816
mfischer at e-fishsolutions.com | http://e-fishsolutions.com






More information about the thelist mailing list