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 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/09c05edc-dd45-4c66-bae1-e30cd3bbdbf6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to