Re: "maxlength" on text area - how to approximate

2007-04-04 Thread Rhapsody Solutions
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

Re: "maxlength" on text area - how to approximate

2007-04-02 Thread Massimo Foti
>> 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

Re: "maxlength" on text area - how to approximate

2007-04-02 Thread Les Mizzell
> 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

Re: "maxlength" on text area - how to approximate

2007-04-02 Thread Peter Boughton
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

RE: "maxlength" on text area - how to approximate

2007-04-02 Thread Steve LaBadie
"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

Re: "maxlength" on text area - how to approximate

2007-04-02 Thread Ben Doom
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

Re: "maxlength" on text area - how to approximate

2007-04-02 Thread Jake Churchill
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

Re: "maxlength" on text area - how to approximate

2007-04-02 Thread Massimo Foti
> 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

"maxlength" on text area - how to approximate

2007-04-02 Thread Les Mizzell
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