I have successfully mapped some XML data to my auto completes. I used XML because it is more familiar to me, but i think i should be using JSON to be consistent with the way my shop develops.
Here is my function using XML:
function (xmlResponse, callback) {
var data = $("STORE", xmlResponse).map(function () {
If i changed my webservice to return JSON, how would i do the identical thing? I think understanding this one example, will help me understand it in general and be able to apply what i learn here to different cases.
I want to use the autocomplete menu for a textbox, but instead of having to type something before you get results, i want the menu to pop up with all available options first on focus, then narrow as you type.