Hey Archimedes,

2008/5/29 Archimedes B. Cortes <[EMAIL PROTECTED]>:
>
> I'm trying to come-up with a validator that will catch every input
> character and filter it if it's not valid (will not show on say a text
> box). A similar class from other lib that I've used before allows this
> and not the current behavior of showing a red on a textbox when
> validated. I usually re-implement validate(input, pos) and manipulate
> the input and pos. I understand that in WValidator's case I may do it in
> javaScriptValidate(). I've already tried, but since I'm not yet familiar
> with the underlying script code, every attempt is still unsuccessful.
> Can you help me with this one? Or is there an easy way?

In principle, yes, you should do this in javaScriptValidate(), but
that validate function does not support manipulating the input (it can
only return whether it is valid or not).

Perhaps we could provide an option to WValidator, that only allows
input characters which validate according to javaScriptValidate()?
While this will make no sense for most types of validators, it could
be useful for custom validators based on WRegExp validator? Would that
be a solution for your validation?

Regards,
koen

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to