I don't know whether jquery might be useful (it's a black art to me) but you can acheive what you want with a combination of javascript and css.
<input type="text" name="test" onblur="this.value=this.value.toUpperCase();" style="text- transform:uppercase;"/> text-transform on its own only displays uppercase but send exactly what the user typed. The onblur action actually changes what the user typed to uppercase when the control loses focus, i.e. before it is sent. On Dec 1, 12:54 pm, voltron <[EMAIL PROTECTED]> wrote: > You can use the python string function > > myString.capitalize() > > http://www.python.org/doc/2.5.2/lib/string-methods.html > > I hope this is what you are after > > On Dec 1, 11:14 am, Marco Prosperi <[EMAIL PROTECTED]> wrote: > > > hello everybody, my web2py application will interchange data with an > > ERP system. On this system all the fields of type string contain only > > capital letters. It would be nice for me if the values of type string > > inserted in a web2py form could be directly converted in capital > > letters. How to manage this cleanly? > > > thanks in advance, > > > Marco --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

