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)

Reply via email to