Re: exec/load/typeahead.js
By: Digital Man to echicken on Thu Oct 22 2015 00:17:13
This sounds like a cool library. I'm glad to see it wasn't added to an existing "catch-all" load file (e.g. funclib.js). :-)
I'm fairly happy with it so far. It doesn't actually "autocomplete", but it lets the user choose from a lightbar list of suggestions based on what they typed (or just submit their own text.)
Writing 'datasource' functions for it is pretty simple. The function receives the current string as an argument, then returns an array of strings (or objects) to be used as suggestions. (There are configurable delays and such involved so that things don't go too nuts while the user is typing.)
The "write email" item on the messages menu of my BBS is a decent example of this in action.
---
echicken
electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com