If you read the article I sent you he goes through the javascript side and
what you need to do on that side. However the endpoint URL you need to
decide yourself - thats the part restframework helps you with.

Regards,

Andréas


Den tis 20 aug. 2019 kl 11:05 skrev Soumen Khatua <soumenkhatua...@gmail.com
>:

> Could you tell me how can I configure javascript in my rest api apps.
> Actually I'm new to this area.
>
> Thank you
>
> On Tue, 20 Aug 2019, 13:52 Andréas Kühne, <andreas.ku...@hypercode.se>
> wrote:
>
>> Ok - so what you need to do is configure the endpoint to use the filters
>> and pagination. Then you need to connect to the backend with javascript and
>> populating the results by adding to the dom.
>>
>> Here is something that is more or less what you want to do - however you
>> need the backend code to get this to work:
>>
>> https://blog.teamtreehouse.com/creating-autocomplete-dropdowns-datalist-element
>>
>> Regards,
>>
>> Andréas
>>
>>
>> Den tis 20 aug. 2019 kl 10:15 skrev Soumen Khatua <
>> soumenkhatua...@gmail.com>:
>>
>>> Suppose If I'll type 'A' and database contains some sentences as an
>>> example AABC, ABC, BCA.It should suggest all the names those are contains
>>> A. If I need to javascript then I can configure could you tell me please.
>>>
>>> Thank you for your response.
>>>
>>> On Tue, 20 Aug 2019, 13:33 DANIEL URBANO DE LA RUA, <
>>> dannybombas...@gmail.com> wrote:
>>>
>>>> You will need to load the data first and for the rest use javascript
>>>>
>>>> On Tue, 20 Aug 2019, 09:56 Andréas Kühne <andreas.ku...@hypercode.se
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> This is exactly what you do with filtering and pagination? Could you
>>>>> please specify why it doesn't suit your usecase? I need to understand more
>>>>> to actually be able to help you :)
>>>>>
>>>>> Regards,
>>>>>
>>>>> Andréas
>>>>>
>>>>>
>>>>> Den tis 20 aug. 2019 kl 06:56 skrev Soumen Khatua <
>>>>> soumenkhatua...@gmail.com>:
>>>>>
>>>>>> My query is little bit different suppose I type A in the search box
>>>>>> imtjen it should recommend AAA, ABC if they are exist into the database.
>>>>>> How I can do that??
>>>>>>
>>>>>> On Tue, 20 Aug 2019, 09:33 Abu Yusuf, <yu...@binate-solutions.com>
>>>>>> wrote:
>>>>>>
>>>>>>> You need to use these both:
>>>>>>>
>>>>>>> 1.Filter: https://www.django-rest-framework.org/api-guide/filtering/
>>>>>>> 2.Pagination:
>>>>>>> https://www.django-rest-framework.org/api-guide/pagination/
>>>>>>>
>>>>>>> On Tue, Aug 20, 2019 at 9:45 AM Soumen Khatua <
>>>>>>> soumenkhatua...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi guys,
>>>>>>>>  I want to implement autocomplete options like if someone type 'a'
>>>>>>>> if it is contains in between any data it should provide the suggestion 
>>>>>>>> of
>>>>>>>> the matched words. Then it will return first 25 matched data, how I 
>>>>>>>> can do
>>>>>>>> that by using django rest framework. Please help me with source code.
>>>>>>>>
>>>>>>>> Thank you in advance
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Soumen
>>>>>>>>
>>>>>>>> --
>>>>>>>> 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 view this discussion on the web visit
>>>>>>>> https://groups.google.com/d/msgid/django-users/CAPUw6WYDQP5YgDZcHC_e8_c%2BTbs3CNEuxutFtmcvmZF-gqu2xA%40mail.gmail.com
>>>>>>>> <https://groups.google.com/d/msgid/django-users/CAPUw6WYDQP5YgDZcHC_e8_c%2BTbs3CNEuxutFtmcvmZF-gqu2xA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>>> .
>>>>>>>>
>>>>>>> --
>>>>>>> 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 view this discussion on the web visit
>>>>>>> https://groups.google.com/d/msgid/django-users/CACNsr28GTfC8FTyWCzE0JkA4ynoVMpa-T2K%3DOs2uHUOjDxLE_g%40mail.gmail.com
>>>>>>> <https://groups.google.com/d/msgid/django-users/CACNsr28GTfC8FTyWCzE0JkA4ynoVMpa-T2K%3DOs2uHUOjDxLE_g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>> .
>>>>>>>
>>>>>> --
>>>>>> 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 view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/django-users/CAPUw6WbREd%2B8Npdb%2B7%2BpYD1sNVy8yusBdGtnAfa74cWt5%2B7ddA%40mail.gmail.com
>>>>>> <https://groups.google.com/d/msgid/django-users/CAPUw6WbREd%2B8Npdb%2B7%2BpYD1sNVy8yusBdGtnAfa74cWt5%2B7ddA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>>> 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 view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/CAK4qSCdi4C6SgddGTD2gNHc%2ByVwZZ78DLV%3D_GWy%2BZzB0L1nmsA%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAK4qSCdi4C6SgddGTD2gNHc%2ByVwZZ78DLV%3D_GWy%2BZzB0L1nmsA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> 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 view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAO_yRT31RDrX7n4npVE%2BrJJOzByYqJf1uKaY6Mb1V2PG9EMVqw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAO_yRT31RDrX7n4npVE%2BrJJOzByYqJf1uKaY6Mb1V2PG9EMVqw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAPUw6WbbYEO3K9H-EgCPdR1Vu_g1BunGb_Ufz4sFpfgCVbz50w%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAPUw6WbbYEO3K9H-EgCPdR1Vu_g1BunGb_Ufz4sFpfgCVbz50w%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAK4qSCesPyt79%3D6nYhzNcekMC-kJOPEk3GRjY_vRXLS1M9ZOpg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAK4qSCesPyt79%3D6nYhzNcekMC-kJOPEk3GRjY_vRXLS1M9ZOpg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPUw6WZLco96sMY1WS-q%2BE8KPo8vbX%2BcpvhmCtJ3toVZiHQLoQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAPUw6WZLco96sMY1WS-q%2BE8KPo8vbX%2BcpvhmCtJ3toVZiHQLoQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCey1dZKTku6bRtMo8qxJPrvFRhG7n5DdQ1RG2bW3U%2BDyA%40mail.gmail.com.

Reply via email to