I'm looking for some frameworks or code snippit repositories with some common AJAX/JS stuff to avoid reinventing the wheel.
My first target is a "suggest" style text box that can auto-complete (via highlighted completions like open office) or suggest (via a list box like "
google suggest").
The number of possible completions could be huge (say, 10s of millions) so I'm not sure how this should be done (Ship the whole list client side on the initial page load then just use a trie or prefix hash index OR AJAX request for some prefix after the first few letters are typed... too slow?).
Any suggestions (for resources or for the problem described above)?