I had a little difficulty following your source code
because it didn't have any whitespace :).
Take a look at my completely documented examples
too, please. Complete code available for download (server side too).
It's a bit more complicated, but it's trying to do more complex
things.
See
http://xsdb.sourceforge.net/xFeed.html for documentation.
See
http://www.xFeedMe.com for live web page examples.
See
http://sourceforge.net/project/showf...group_id=93603 to
download.
[Most of the package bulk consists of example data used in
the example configurations.]
The xFeed example application of the
xsdb package provides an infrastructure which makes it easy to
implement "type ahead suggest" drop down selections matching
against large or small data sets in web pages.
The xFeed type ahead completion functionality
can use a static xml file for small data sets or it can use live
server components provided with the package for any size
data sets.
All software is open source and freely available for use and
modification by anyone. Enjoy! Thanks!
-- Aaron Watters
===
Sometimes I forsee my son saying "I'd like to
thank the Nobel committee..." and other times
I forsee him saying "Would you like fries with that?"
-- Robin Williams