Autosuggest with 2D data?
I have an application that provides autosuggest functionality on a field through an AJAX call. Its pretty old code (pre-CF8) and I'm looking to update the tool to use some more current tech. I've got my eye on the CF 8 autosuggest functionality now built into <cfinput>, the only problem is that I'm dealing with 2-dimensional data coming back from the AJAX call.
Let me explain:
1) Say the user starts typing into the text field txtFieldA
2) My tool does an AJAX call and returns the data in the following format:
MATCH1 (DESCRIPTION1)
MATCH2 (DESCRIPTION2)
MATCH3 (DESCRIPTION3)
3) When the user selects the correct option, only the MATCH1 text is inserted into txtFieldA (the DESCRIPTION1 text is left out)
As far as I can tell, the autosuggest functionality built into <cfinput> won't handle 2D data, or selectively inserting only some of the returned data. Does anyone know if there is a way to get this to work with the native CF8 autosuggest? Or if there is another package that might provide this same functionality?
I'm familiar with the different tools out there for 3rd party autosuggest functionality (JQuery, Spry, etc) - I'm specifically looking for a package that will allow me to selectively insert only a portion of the returned data when an autosuggest option is selected.
Thanks!
- Michael
