[jQuery] Extend Autocomplete
I have a JavaScript function that makes an Ajax call and returns
results into a local variable. I would like to call this function
from the Autocomplete plugin (http://bassistance.de/jquery-plugins/
jquery-plugin-autocomplete/) as my Ajax data souce. I understand that
Autocomplete can use either a local variable or a URL, but the
framework I'm using has some built-in Ajax functions to set the value
of a variable, run a SQL query, and return the result.
I could do this by re-writing autocomplete, but I don't think that's
the best solution.
So, lets say I have some JavaScript function called getMyData, how
would I extend Autocomplete such that it calls getMyData instead of a
URL to get the results?
Thanks,
Tyler