I was thinking about this topic the other day, and it seems to me that TG should have a "default" client-side validation solution. Like any other part of TG, you could write something similar yourself if you wanted, but this would help a lot of people get their apps runniing quickly "out-of-the-box". I'm still thinking about what the best way to go about this would be, though.
Kevin HOn 8/30/06, Karl Guertin < [EMAIL PROTECTED]> wrote:
On 8/30/06, Alexandre Futata <[EMAIL PROTECTED]> wrote:
> I'm looking for the basics in using _javascript_ client-side validation.
> Should I use Mochikit, or something alike?
I don't know offhand of any really good _javascript_ validation tools,
so MochiKit works as well as anything at iterating through fields and
checking values.
One of the blue-sky ideas I've had is to figure out how to use the
_javascript_ pypy backend to convert python validation expressions into
_javascript_. You'd still have to build an engine to run the definitions
client side, but at least test translation could conceivably be
automatic.
I've seen something similar to this in www.miolo.org.br.
In that framework you can specify the kind of validation you want, and when the widget is rendered, a _javascript_ function is called to validate the field.
Maybe I can help you Alexandre
mario h.c.t.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

