I'm looking into using the autocomplete plugin from
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/.

The provided examples all use static data.

What I want to do is to mimic the behavior that search engines (like Google,
Yahoo, Bing, etc.) use for the auto-complete on their entry fields...  After
the user enters each character into the text field, the search engine's auto
complete generates a new set of selectable options based on the current
value of the text field.  So if the user enters "fog" into the text field,
the text field shows one set of options after the user enters the "f", and
then a refined set of options after the user enters the "o", and then an
even more refined set of options after the user enters the "g".

My server has a back-end routine that will take the string that the user has
entered so far, and returns the auto-complete data for that particular
string.  (Not this this is relevant to jquery, but my server implements this
by making calls to http://google.com/complete/search?q=fog.)  The server
outputs a javascript string that looks like this:
var autocompleteData = ["some value", "some other value", "yet another
value", "and so on"];

What I need is for the autocomplete module to invoke my server routine after
each keystroke.

Is this possible?

Reply via email to