Check out the javascript on
https://wmg.tmomail.net/customer_site/jsp/messaging_lo.jsp It will not let you
past 140 characters.
>Does anybody have a really good way to create the equal of "maxlength"
>on a text area? The server running site in question is only running CF 6
>something, not 7, s
>> http://www.massimocorner.com/validator/samples/generic.htm
>
> I've had great luck with the validator on regular HTML forms, but not
> much luck on a cfform
Sure, cfform overwrite too many things, making harder to put other solutions
in the mix.
Massimo
> http://www.massimocorner.com/validator/samples/generic.htm
I've had great luck with the validator on regular HTML forms, but not
much luck on a cfform
~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfu
function checkLength(textarea)
{
var maxLength = 10;
if (textarea.innerHTML.length > maxLength)
{
textarea.innerHTML = textarea.innerHTML.substring(0, maxLength);
}
}
Do that onkeydown and onblur and it should be good enough?
>Does anybody have a really good way to create the equal of "ma
"maxlength" on text area - how to approximate
Does anybody have a really good way to create the equal of "maxlength"
on a text area? The server running site in question is only running CF 6
something, not 7, so cftextarea won't work...
I've tried a couple of javascri
Do an additional check onsubmit. That way, even if they paste more than
you want to allow, it will get caught client-side.
--Ben Doom
http://www.bendoom.com
Les Mizzell wrote:
> Does anybody have a really good way to create the equal of "maxlength"
> on a text area? The server running site
Can you do an onblur on the field and call a JS function to get the length?
Jake Churchill
CF Webtools
11204 Davenport, Ste. 200b
Omaha, NE 68154
http://www.cfwebtools.com
402-408-3733 x103
Les Mizzell wrote:
> Does anybody have a really good way to create the equal of "maxlength"
> on a text
> I've tried a couple of javascript ideas, and as long as you're typing
> input, it works. But, everything I tried so far will allow pasting more
> than the max set.
http://www.massimocorner.com/validator/samples/generic.htm
This is part of a whole validation library:
http://www.massimocorner.c
Does anybody have a really good way to create the equal of "maxlength"
on a text area? The server running site in question is only running CF 6
something, not 7, so cftextarea won't work...
I've tried a couple of javascript ideas, and as long as you're typing
input, it works. But, everything I
9 matches
Mail list logo