JSON is literally the notation for objects and arrays in JavaScript, when
you "print" it it outputs valid JavaScript code.

On Mon, Mar 23, 2015 at 11:59 AM, dk <[email protected]> wrote:

> AHHH....!!!...
> that make scenes  that the java script did work when I did it manually.
> I haven't use json files before, so I am not  sure how to manage that, I
> will look around for more information on that.
>
> On Friday, March 20, 2015 at 4:59:30 PM UTC-5, dk wrote:
>
>> I am trying to create an autocomplete tag with jquery UI
>> http://jqueryui.com/autocomplete/
>>
>>
>>
>> in my view I got a list of commands,   in the meant time I am just
>> testing it, so I have a list with ["a", "aaa", "b", "bbb"]
>> <script>
>>  $(function() {
>>  var avaibleTags = [
>>       {% for i in list_commands %}
>>           {{ i }}
>>       {% endfor %}
>>  ];
>>  $( "#tags" ).autocomplete({
>>   source: avaibleTags
>>  });
>> });
>> </script>
>>
>> but it doesn't work,   does the string replacement of the template tags
>> works on the script part ?  or I might be missing something?  thanks =)
>>
>  --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/35a2f15f-a406-46b7-b0d4-8087af6c67dc%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/35a2f15f-a406-46b7-b0d4-8087af6c67dc%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALn3ei1EJe0xsWL7gYt%2BwW0gfvDbjvATSQrYQaXQREBL_jDaVg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to