开发者

Auto complete box implemented using appengine

开发者 https://www.devze.com 2023-02-16 11:37 出处:网络
I am developing an application using python version of appengine. I would like to implement a auto complete开发者_开发问答 box in my application. The suggestions for the auto-complete options will be

I am developing an application using python version of appengine. I would like to implement a auto complete开发者_开发问答 box in my application. The suggestions for the auto-complete options will be derived from a string property in my data model. Please help by providing an example of a similar implementation.


  • YUI-Django-AutoComplete

  • YUI Autocomplete in Django snippet http://www.djangosnippets.org/users/pigletto/ pigletto

  • Will Larson's http://lethain.com/entry/2007/dec/01/using-jquery-django-autocomplete-fields/ Using JQuery with Django for Autocomplete Fields

  • http://www.djangosnippets.org/users/skam/ skam 's JQuery auto-complete widget in Django snippet http://www.djangosnippets.org/snippets/233/

  • Jannis Leidel's http://jannisleidel.com/2008/11/autocomplete-form-widget-foreignkey-model-fields An autocomplete form widget for ForeignKey model fields

  • etc in http://code.djangoproject.com/wiki/AutoCompleteSolutions


You can have a look at the jquery auto complete here

HTML :

$("#search_users").autocomplete(URL);

PYTHON:

        q = (self.request.GET['q']).lower() 
        #query on model 
        for records in result:
            print records+"|"+records+"\n"
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号