Say, I have an input field or text area.
<xforms:input ref="allCapsText"> </xforms:input> What I want is to convert user input in all capitals. Preferably as user is typing. So she sees 'I LOVE MY DOG' instead of 'I love my girlfriend's dog'. Anybody has an idea? Thank you very much. -Taras -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
<xforms:bind nodeset="allCapsText" calculate="upper-case(.)"/> You might need to add a readonly="false()" to avoid the presence of the calculate attribute changing the default readonly status. Adrian Taras Bahnyuk wrote: Say, I have an input field or text area. <xforms:input ref="allCapsText"> </xforms:input> What I want is to convert user input in all capitals. Preferably as user is typing. So she sees 'I LOVE MY DOG' instead of 'I love my girlfriend's dog'. Anybody has an idea? Thank you very much. -Taras -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Taras Bahnyuk
Adrian, you are the hero!
Thank you very much :-)
-Taras From: Adrian Baker [mailto:[hidden email]] Sent: woensdag 29 maart 2006 11:49 To: [hidden email] Subject: Re: [ops-users] User input to upper case <xforms:bind nodeset="allCapsText" calculate="upper-case(.)"/> You might need to add a readonly="false()" to avoid the presence of the calculate attribute changing the default readonly status. Adrian Taras Bahnyuk wrote: Say, I have an input field or text area. <xforms:input ref="allCapsText"> </xforms:input> What I want is to convert user input in all capitals. Preferably as user is typing. So she sees 'I LOVE MY DOG' instead of 'I love my girlfriend's dog'. Anybody has an idea? Thank you very much. -Taras -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |