On 12/21/05, Dan Jacob <[EMAIL PROTECTED]> wrote:
>
> What are people's thoughts on adding automatic JavaScript validation to
> widgets ? There are two possibilities here:
>
> 1. The old-fashioned way. Basically alert boxes are used to display
> error messages (though other methods are possible). Basically we would
> need to translate all the FormEncode validators to JavaScript somehow.
>
> 2. The AJAX way. The validation is done server-side, and the error
> messages are sent back with JSON and rendered in the form somehow. This
> would be neat but is it possible to prevent the same form being sent
> twice to the server (once for validation, then again for execution)

I had been thinking that it would be cool if FormEncode validators (or
a derivative thereof) could somehow specify JavaScript validation to
occur for the field. But, I punted at that for the time. If you want
to experiment, have at it!

(I concur with Alvin that the AJAX method is a bit heavy-handed for
what you'd really want client side validation to do.)

Kevin

--
Kevin Dangoor
Author of the Zesty News RSS newsreader

email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com

Reply via email to