[Seaside] Are there any form input components that do javascript driven validation

Avi Bryant avi.bryant at gmail.com
Wed Jan 26 14:25:35 CET 2005


On Sun, 23 Jan 2005 12:22:44 -0800 (PST), Mike <me at mikehogan.net> wrote:
> Hi all,
> 
> So if I want to display a text input in a form I use
> textInputWithCallback.  Is there an API that allows me state
> validation rules that must be performed on that text input and
> have those rules enforced on the browser using javascript?

No, nobody has done any work on this yet.  It's a natural and obvious
thing to have in the framework, though.

>  If not, could somebody please offer a few lines of guidance on how
> best to do this the seaside way?

Do you want to do it onblur() (as soon as the user moves away from the
field) or when the form is submitted?  How do you want it to respond?
(With a javascript alert, or ?)  I would do it in somewhat different
ways depending on the answer to that.

Avi


More information about the Seaside mailing list