Hi, I'm able to get autocomplete work with newline-separated return values, but am unable to display the same data with the json format. I'm using the source code of this: http://jquery.bassistance.de/autocomplete/demo/json.html as a reference. I can see json data being returned fine (thanks to Firebug!) but this part gives an error: ... ).result(function(e, item) { // alert(format(item)); $("#content").append("<p>selected " + format(item) + "</p>"); });
It says "result is not a function", which I found in another file: jquery.bgiframe.min.js Is it necessary to use result() for the plugin to function properly? I dont seem to be able to get the result() function. Also, I tried extracting the data from "item" in formatItem(): parse: function(data){ return $.map( data, function(row) { return { data: row, value: row.id, result: row.full_name + "(" + row.id + ")" } } ); }, formatItem: function(item) { return format(item); } where the format function is thus: function format(area){ return area.full_name; } Isn't there a simpler way of identifying and trapping the selected item and retrieving it's json data? Any help is greatly appreciated. (even links to a proper tutorial / explanation) Thanks in advance. -- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.