On Feb 9, 2006, at 2:55 AM, Ian Holsman wrote:
a while back Euguene mentioned on djnago-users that 0.92 will have
dojo ajax components in the admin interface.

is this being developed on a seperate branch?
I'd like to talk about the json layer, and how a common method for
sending errors in validation/processing to the front end could work.

basically in the code i have I am passing a json object like
{ result: true/false and messasge: 'error message' }
which then gets displayed to the user if it requires.

Hi Ian --

I've been working on the Dojo stuff in my own sandbox. Right now the admin is broken pretty bad while I'm redoing all the ad hoc JS bits, so I've not yet checked anything in (I hate checking in broken code).

However, I haven't addressed validation over JSON yet, and I'm planning on checking in the changes to the rest of the widgets to use Dojo first before I start on that stuff.

What I was planning for JS validation was an API that's very similar to the existing validation API. You'd pass in the name of the field to validate and all the data currently in the form and get back a list of error messages on that field (which would be empty if everything's OK). You need to pass all the data in, by the way, so that validators like RequiredIfOtherFieldGiven can work.

How's that sound?

Jacob

Reply via email to