Re: django.newforms and AJAX

2008-03-28 Thread Ariel Mauricio Nunez Gomez
David, Good luck on what you are trying to achieve. Jump in, I think your list is just enough for a proof of concept. We are waiting eagerly to try what you come up with. Dive in. Regards, Ariel --~--~-~--~~~---~--~~ You received this message because you are su

Re: django.newforms and AJAX

2008-03-28 Thread panta
Hi David, maybe it's something at a different level from what you are considering, but one thing I'd consider immensely useful is the ability to override the widget for ModelChoiceField (by default a ), adding buttons to open a search/edit form inside a popup (like in the admin). I don't even know

Re: django.newforms and AJAX

2008-03-27 Thread David Cramer
I'm not too familiar with .NET, but with middleware and decorators it would be possible, there would just need to be some awareness. One thing we had done on Curse, was wrap the jQuery base AJAX call, and our login_required methods. If a JS method was sent in (all JS methods were to /js/ or had js

Re: django.newforms and AJAX

2008-03-27 Thread Darien GarcĂ­a
I think it's possible, using python decorators and django midleware, implement something like AJAX.NET in the way of sending python objects to the page via JSON using a python-JSON translator. And I'm also looking forward for the tool. --~--~-~--~~~---~--~~ You re

Re: django.newforms and AJAX

2008-03-27 Thread peschler
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-rest

Re: django.newforms and AJAX

2008-03-27 Thread David Cramer
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 i

Re: django.newforms and AJAX

2008-03-27 Thread Michael
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. Als

django.newforms and AJAX

2008-03-27 Thread David Cramer
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 serve