[REBOL] Re: Input validation routines
From: maximo:meteorstudios at: 27-Aug-2003 11:24
> -----Original Message-----
> From: Gregg Irwin [mailto:[greggirwin--mindspring--com]]
> Sent: Wednesday, August 27, 2003 11:03 AM
> To: Robert M. Muench
> Subject: [REBOL] Re: Input validation routines
> I'm all for *anything* that helps users, but validation after the fact
> and better help information to show them what's valid can be used
> with the same prototype-form approach, just without the key-level
> interaction bit. I guess I'm saying I'd get the validation part
> working before worrying about key-handling integration.
liquid (and thus liquid-vid) lets you insert a validation hook for each field. by creating
preset styles, you allow the input in the fields to be bound to a certain type.
The advantage, is that not only the ui field gets validated, but any other method which
can set the value (like a load or value update).
For liquid-vid, anything that is invalid, resets the field to its previous value when
enter is pressed. Try it in the colorbox demo... if you write something that is not
valid in the individual color text fields, (like a non-numeric value), then the previous
color will be replaced after enter (instead of putting it to 0).
The validation IS hand written, but if other as-datatype filters where created, then
its really easy to setup.
my two cents.
PS: the STEEL site is still NOT updated <sigh!>. The season is fall (automn, for some
of you) and a lot of things are going around my house, so I have like 1-2 hours per day
to work on it... :-( IT IS PROCEEDING... JUST VERY SLOWLY .... I have worked hard on
looking at licensing (it takes so much time to do)... and have done a lot of work on
also, my internet connection at home is being capricious (modem is not very stable...)
so I lost one complete evening tryin to get a new USB modem to work, without success...
I was severely irritated...TONIGHT I AM UPDATING THE SITE (major overhaul in content
and structure, mainly because of all that new remark.r stuff) and START PUTTING THE FIRST
DOCS ON LINE.
Next time I'm keeping my mouth shut (like I'd done so far) as long as its not online...
sorry for all the b***shit!
Steel project coordinator