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 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 tried so far will allow pasting more > than the max set. > > I'm checking server side before the data insert, but the client wants to > see something client side while the form is being filled out. > > Ideas? > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion MX7 by AdobeĀ® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274318 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

