Re: jquery, json and forms

2012-07-02 Thread Psamathos
It sounds like you want to initialize your form in the view. You can also do this by passing an initial keyword argument to the form constructor: exampleform = ExampleForm(initial={"examplefield": request.user.first_name}) This would set the examplefield of ExampleForm to the requesting use

Re: jquery, json and forms

2012-07-02 Thread Jon Black
One approach is to pass json/html data in the response after saving and use jQuery to update the page. On 07/02/2012 05:12 PM, David wrote: > Hello > > I have a form that saves, and displays errors correctly when using > javascript and without. > > However, when my form saves I need to refresh t