On Tue, Apr 9, 2013 at 1:24 AM, Larry Martell <larry.mart...@gmail.com> wrote: > I appreciate the suggestion, but using a hidden field sounds very > kludgy. Is there no other way? >
Remember that JSON = JavaScript Object Notation - its a way of writing literal JS objects. <script type="javascript"> var data = {{ json_encoded_literal }}; </script> You've got to fully trust the data that you have encoded! If I was dealing with user generated content, it would go in an element, or loaded over AJAX. Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.