views:

150

answers:

2

I'm basically looking for the client-side equivalent of Django's ModelForm: I want to be able to specify the general schema of my data (what the fields are, which ones are required, what kinds of fields to use, etc.), and I want to be able to dynamically generate the form, itself, fill it with any initial data, validate it, and extract an object containing the validated data that I can Ajaxily submit places when the form has been filled out.

Dos this exist? Something jQuery-flavored would be preferred.

A: 

http://neyric.github.com/inputex/examples/json-schema.html
This is very likely what you want. Give YUI a whirl ;)

unomi
Thanks, I'll take a look.
Andrew Pendleton
A: 

May I also humbly suggest Metawidget? It supports a broad range of back-end definitions and UI frameworks.

Regards,

Richard.

Richard Kennard