• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jQuery autocomplete problem

 
John Eric Hamacher
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello:

I am having trouble getting autocomplete to work. I send my term to the server and get a response back:


But no dropdown appears. Thanks. Eric







 
John Eric Hamacher
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get the JavaScript error "elems is undefined"
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As elems does not appear anywhere in your source, perhaps you are looking in the wrong place?

You'll need to give us some more info regarding the context of the error.
 
John Eric Hamacher
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,

it turns out that "item" is undefined at the place marked below. The elems reference comes from the jquery 1.7.1 file (~line 760)and is shown below. I copied this autocomplete from a tutorial. Is this a correct usage of map()?

Eric.








 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic