PDA

View Full Version : Key filters


tsummerall
04-26-2007, 03:27 PM
Is there a way to filter keyboard input to components like <inputtext>?

For example, what if you only want to allow numeric entry in a field?

senshi
04-26-2007, 04:06 PM
<inputtext pattern="[0-9]*" />

tsummerall
04-27-2007, 06:03 AM
Best forum answer ever.

Thanks!

(PS weird that all my Google searches on "laszlo key filter" never turned this up - should have said "pattern". Damned synonyms!)

senshi
04-27-2007, 06:20 AM
Best forum answer ever.

Sorry, if my answer was a bit too harsh. I was some kind of tired, it was 2 o'clock...in the morning.

tsummerall
04-27-2007, 06:26 AM
Not at all! I was actually being serious - great post.

It exactly answered my question in an admirably pithy manner.

:-)

tsummerall
04-30-2007, 12:28 PM
Never mind...figured it out.