Hi David I was thinking about something like that, too. How do you intend to handle things on the server-side? How is the JS supposed to generically get the data?
I already implemented a server side app, which makes all content types available via a REST conform API using a hacked-up django-restapi. That way I can query all models in a generic way on the client side via AJAX calls. Basically you can call a URL like this: # Returning a XML encoded list of instances of contenttype with id 5 http://example.com/xml/contenttype/5/object/ # Returning a XML encoded instance of contenttype with id 5 and object id 8 http://example.com/xml/contenttype/5/object/8 Additionally I wrote some client-side JS using jQuery which calling the server-side code to dynamically populate ModelChoiceFields (for ForeignKey fields). Anyway, I think your ideas are great and if you are interested in the code mentioned above, just tell. If you stay with mootools I will help out to provide an client-side implementation using jQuery. I'm not familiar with moo and jQuery fits my needs perfectly. Here's one addition to your list of thing-to-do: - Add some specialized newforms widgets for AJAX based ForeignKey and ManyToMany handling. Implementing a custom field allows specifying JS and CSS for the field, which will then be added automatically into the template. peschler On 27 Mrz., 16:01, David Cramer <[EMAIL PROTECTED]> wrote: > I was planning on using mootools, but it could just as easily be done > with jQuery or no libraries (as all we need are a few basic things.. > DOM selection and AJAX, the rest is cake) > > On Mar 27, 7:58 am, Michael <[EMAIL PROTECTED]> wrote: > > > David, > > > This would be really cool because right now it is still a bit of a > > pain to do this for each form. A tool could really save some time. One > > thing that keeps coming up that I need javascript to check for is for > > file uploads checking that the file is appropriate both in extension > > and size. Also the ability to add an indicator that shows that the > > form is actively being submitted would be really helpful. > > > Obviously this is a fringe case, but perhaps I might even get some > > time to modularize the javascript that I have to pass to you. Sadly my > > stuff is mostly attached to YUI. Are you planning on using a library > > for this tool and if so which one? > > > Thanks for the work. I look forward to seeing the tool, > > > Michael > > > On Thu, Mar 27, 2008 at 10:13 AM, David Cramer <[EMAIL PROTECTED]> wrote: > > > > As promised, Im going to release some tools that make it easier to > > > integrate client and server-side javascript validation and utilities > > > for newforms. To do this though, I first need to come up with a list > > > of what is needed. Here is my current list: > > > > - Validation per-field via client-side and server-side JS (e.g. slug > > > is unique=True, onchange query server) > > > - Validation on submission > > > - Auto complete on relational fields (foreign key, many to many) > > > - Char fields for foreign key and many to many that use server-side > > > validation > > > - Many to Many char field would show many char fields (adding them as > > > you go) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---