Autofill dropdown with django

428 views
Skip to first unread message

Karthik Abinav

unread,
Mar 22, 2012, 2:03:07 PM3/22/12
to django...@googlegroups.com
hey,

 I needed a autocomplete utility in one of my applications and I was wondering if django provides any such option for that. Basically my need is a box where user starts typing some name and as he types I need a list of suggested autocompletion, to be provided. Something like how when a user tries to tag a friend in facebook and it provides options. Help would be appreciated.

Thanks,
Karthik Abinav

Nikhil Verma

unread,
Mar 22, 2012, 2:08:16 PM3/22/12
to django...@googlegroups.com
Hi Abhinav

If i understand you correctly take a look at django-ajax-select.
Home-page: http://code.google.com/p/django-ajax-selects/

This is an autocomplete box which works in the following way :-

Hope it helps you !!!

Let say we have a username textbox(which is ajax-selct field) so i type Ab ... It will give you the list of username that starts with ab.
It has some settings though.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
Regards
Nikhil Verma
+91-958-273-3156

Sandro Dutra

unread,
Mar 22, 2012, 2:08:52 PM3/22/12
to django...@googlegroups.com
I think it's more Javascript/AJAX than Django, obviously you'll need to do a function that uses HttpRequest.is_ajax(), but in the end, the core of this code is more Javascript/AJAX than Django.

2012/3/22 Karthik Abinav <karthik...@gmail.com>

--
Reply all
Reply to author
Forward
0 new messages