[Zope] Trimming a text field in a form

Tommy Johnson tommy@7x.com
Thu, 26 Jul 2001 17:16:58 -0800


Hey all,

Another question. How do you trim a form field with dtml? I have JavaScript
doing it when the form is submitted, but that doesn't help much for those
browsers whose user's have disabled JavaScript.

In ColdFusion, or even the dreaded ASP, I had a Trim() function at my
disposal. Is there something that I can do with dtml - possibly a python
expression that I use in a <dtml-call expr=""> type thingy?

Thanks in advance,
Tommy

Innovation:
The Best Way To Predict The Future ...
     Is To Create It.