I’m hoping someone can provide me with some general guidance about how I would implement a “type ahead” text box in a situation like when a user is adding interests to their user profile (or adding hashtags/keywords to any kind of persisted entity, etc).
I’m envisioning that the interests a user types & submits will end up being stored in a list within their respective profile, and my goal would be that if another user starts typing the same interest to add to their profile, that a “type ahead” feature would kick in and pull up a list of interests (already entered by other people) that start with the letters being typed. The goal being easier and more consistent data entry.
Is there a “type ahead” package that people use most… or just the usual jquery stuff?
Would I create a central “Interests” collection and add every distinct interest to that (as well as the user’s profile.interests list) as any given user adds it to his/her own user profile?
Coming from the relational world… having the full text of every interest both in the profile + a central “interests” collection (for type ahead lookups) seems like so much redundant data compared to having a single interests table and every user just referencing foreign keys to that.
If I only had a few hundred users I guess the interests lookup could be a “distinct” query on the user profiles themselves instead of a centralized lookup table… but my goal is much more than hundreds of users