CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 SIMPLE Input Mask

Print topic Send  topic

Author Message
LarryEitel

Posts: 10
Posted: 04/18/2004, 11:32 AM

Is it possible and if so how to trap keystrokes into a text input field and convert to uppercase.

I thought Format in design view would work. Docs don't give any examples that I can find.

Thanks! :)
View profile  Send private message
peterr


Posts: 5971
Posted: 04/18/2004, 1:17 PM

It is not possible to trap keystrokes via the Format since the formatting happens on the server, while "keystrokes" happen on the client. You would rather use JavaScript for this. If this is what you need then you can use the standard JavaScript for this. Just use Google to find the examples (no need to be CCS-specific).
As an idea, you could change the "applyMask" function in "functions.js" that CCS generates when you use the "Input Mask" property of the "Validate Entry" action. You can see it implenmented in the "Input Mask" example in CCS Example Pack, also at http://examples.codecharge.com/ExamplePack/InputMask/InputMask.php

On another hand, if you want to convert the text to upper case on the server (after users submit the value) then you would use the regular functions that do this in the programming language that you are using.
In both cases you can use Google to find such functions - any standard functions with work in CCS therefore there is no need to document them on our end.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.