Monday, July 2, 2012

Re: jquery, json and forms

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJP8cJDAAoJEGIoLYdRZJB1y5kIAKU1pZURKvAmQmvbdqgnSga4
hJJUGoRUGG/0hGvsDSPE8VFEMDvTmO7D1Ipvn+mvbdikyurvjz366hPZ3V+GOU3B
bzlQVSgapl3BAMvJIkUFGiFDRiBBFob/Vh0t76qmTm9SzCbwn6/isLmg/02IltEp
HVDxAX9eg0Yk9EpocPb7Fl3kniKAeg/ifXXygV0kueIpyaGSgTdw2onB14hFHWq5
BP+gu9r5ckYHDgfVwH4ut052S5acUnp+qZIsVlAow3KOZPSzkmED/tqX8WCWY+XU
z8PCDd6GGglI9AOaSalBJ0b/5br/eIuJISEyeQQu1ui5hjuWQXBNC39+f430Gh4=
=2Wym
-----END PGP SIGNATURE-----
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 the form with the new form
> data. How can I pass the form object through json back to my template
> please?
>
> Thank you for any help.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/83FaoYuJjFQJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment