Похожие чаты

@MrThieves If I understand what you asked, you are wanting

to implement a system where a user can add items to a list. For an item to be added, the user enters some search keywords in an input field, and a request is sent to the server, which sends back some possible items, from which the user selects the item to be added to the list. Is this what you want to implement?

6 ответов

8 просмотров

yes that is what i want. and one thing user just select one item from list and then enter another search keyword.

devFojo-Olubo Автор вопроса
Mr Thieves
yes that is what i want. and one thing user just s...

For the search input, in the change event listener, send a request to the server (containing the search characters the user enters. Ensure to use debouncing so as not to send requests every time a new character is typed. Then the server sends in the list of items. You display this result in a dropdown (or whatever way you want to), and the user selects an option. After selecting an option, you add it to the list containing the other selected items, and also update the database. I think this should work

devFojo Olubo
For the search input, in the change event listener...

just one thing. 1. i type something in input with debounce fuction. 2. after i get result from server, i show it with datalist. 3. then client select one of the result from list. 4. what should i do? is there any event for datalist or input that i get when something selected and i can update result? i just want this function only called when i select something from datalist.

devFojo-Olubo Автор вопроса
devFojo Olubo
Yes, for input; input event

i am talking about after i get data from server. that event is for when something changed in input.

Похожие вопросы

Обсуждают сегодня

To kaise hai aap log ?
Hakuna Matata
29
вопрос: кто как решает вопрос с динамической подгрузкой скриптов для отдельных страниц с включенным turbo router?
Sergei Toroptsev
25
Great news for DePIN fans 🫵🏻 Synternet’s $NOIA token is now supported by ioPay, a multichain wallet from IoTeX! 🫡 https://x.com/synternet_com/status/1792589757471408572?s=46
Emilis
16
Подскажите пожалуйста, почему на mac m1 (arm) не монтируется ssh-agent сокет в собираемый образ? В системе не запущен ssh-agent и переменная среды SSH_AUTH_SOCK не задана. tes...
Eugene Shutov
4
Сообщение* в закодированном виде. То есть, просто сделать sendMessage?text=Привет бла-бла! не получится, надо в HEX переводить, и добавлять процент, типа такого: sendMessage?t...
КТ315
21
@LGCYMan @JustinKKW Q/A List 1. this part confuses me on #8: "From there, a bridge between erc20 LGXY and erc20 LGXY will be out once that swap is closed." does this mean ...
Sig | LGCY | BattleVerse L1 | BitWin
1
Anyone here suffers from unexplained aural migraines, who would be up for talking for a bit? Doesn't *have* to be aural, but I am not asking about headaches, I mean actual mi...
Martin Rys
58
А случайно нет ли в паскале штатной возможности передать указатель и количество туда где array of в качестве аргумента?
zamtmn
25
приветы , подскажите что я не так сделал , почему у меня скрипт не работает в программе Revit ? ;Autohotkey_RU IfWinActive ("ahk_exe Revit.exe") ; только в открытом Revit Gu...
Anton Terentev
2
You ever fuck a fat chick from behind and you’re missing out on a solid inch or two of penetration because of her fat ass?
Genghis Jhan
11
Карта сайта