I occasionally run into situations where it would be really great to add an ‘intellisense’ feature to a text input on a web form. That is, something along the lines of AutoComplete or Google Suggest.
There are a bunch of scripts available on the Internets to handle this for you, but they all do things their own way, and they’re never exactly what yor want. I’m always running into the same problems with them:
- Only works in IE. Bye.
- Big hairy mass of code. The usual situation is that I want to customize some element of the script’s behavior, but the code is so dense and obtuse that I can’t make changes without breaking things.
- No documentation. A big hairy mass of code is even harder to deal with if you don’t know what it’s supposed to do in the first place.
So, I finally broke down and wrote my own script. It may not be better than what’s out there, but hopefully it’s easier to understand.