Hi. I am using the jQuery AutoComplete pluging. My servlet is returing XML in the following format:
The problem is that when I start to type characters into the automcomplete field, i am getting the following error in Firebug:
highlight: function(value, term) {
return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi, "\\$1") + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>");,
I'm not really sure why value is undefined. The XML appears to be parsed correctly.
I'm using 1.1 of the Autocomplete plugin and 1.4.2 of jQuery. Any ideas?
Thanks
John