# Autocomplete in WebApp?

**URL:** <https://forum.xojo.com/t/autocomplete-in-webapp/40317>\
**Category:** Web\
**Created:** [October 23, 2017, 5:02pm UTC](https://forum.xojo.com/t/autocomplete-in-webapp/40317 "2017-10-23T17:02:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Underwriters\_Technologies](https://forum.xojo.com/letter_avatar_proxy/v4/letter/u/ed655f/32.png) [@Underwriters\_Technologies](https://forum.xojo.com/u/Underwriters_Technologies)\
**Post date:** [October 23, 2017, 5:02pm UTC](https://forum.xojo.com/t/autocomplete-in-webapp/40317/1 "2017-10-23T17:02:27Z")

</div>

Has anyone had any success with autocomplete on a web app?

Native Xojo has to call back to the server so the time lag makes autocomplete unreliably slow.

I suck a javascript, but I suspect it is my answer. Any ideas out there?

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [October 23, 2017, 5:04pm UTC](https://forum.xojo.com/t/autocomplete-in-webapp/40317/2 "2017-10-23T17:04:20Z")

</div>

Very few web services offer autocomplete because of the huge overhead with communication. Dynamic autocomplete like Google offers is a _ton_ of back and forth. You might be able to send a dictionary of acceptable phrases to the browser.

Could you be more specific about the use case?

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [October 23, 2017, 9:34pm UTC](https://forum.xojo.com/t/autocomplete-in-webapp/40317/3 "2017-10-23T21:34:11Z")

</div>

It is indeed possible to create a dictionary in JavaScript to handle the suggestions, but at any rate, one still needs to send the data to the browser. So if there is a lot data, it will be slow anyway.

---

<div class="post-metadata">

**Author:** ![Underwriters\_Technologies](https://forum.xojo.com/letter_avatar_proxy/v4/letter/u/ed655f/32.png) [@Underwriters\_Technologies](https://forum.xojo.com/u/Underwriters_Technologies)\
**Post date:** [October 24, 2017, 2:28am UTC](https://forum.xojo.com/t/autocomplete-in-webapp/40317/4 "2017-10-24T02:28:53Z")

</div>

Fortunately, and the use case that I am thinking of, it will only be a couple of dozen items. So I think I can send the entire dictionary without too much overhead. But I dont know how to implement it. Any suggestions?

---

<div class="post-metadata">

**Author:** ![Hal\_Gumbert](https://forum.xojo.com/user_avatar/forum.xojo.com/hal_gumbert/32/160_2.png) [@Hal\_Gumbert](https://forum.xojo.com/u/Hal_Gumbert)\
**Post date:** [October 24, 2017, 5:14pm UTC](https://forum.xojo.com/t/autocomplete-in-webapp/40317/5 "2017-10-24T17:14:40Z")

</div>

Here’s a nice example: [http://www.runningcoder.org/jquerytypeahead/demo/](http://www.runningcoder.org/jquerytypeahead/demo/)

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 6:58pm UTC](https://forum.xojo.com/t/autocomplete-in-webapp/40317/6 "2020-10-29T18:58:02Z")

</div>


