incredible! Autocomplete Usernames (and how I did it)! That’s right, I’ve got auto-complete built in for Twitter accounts. As you type more letters, the box moves a bit to the right and narrows the results.
It does a global search in the username instead of a “starts-with” search. I chose this because often I’ll remember part of a user’s handle and this way I can find it easily. For instance, local brewery Abita’s Twitter name is @TheAbitaBeer, but I often forget about the “The” in the beginning. This way, I can start typing “@ab” and they’ll show up in the list. The other way would require me to remember to type “@the” which is lame.
I’ll probably clean up the appearance of this, but I like that the box moves with the text.
Wanna know how I did all this? Check it out on GitHub: https://gist.github.com/1150840
blog comments powered by Disqus