aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes jQuery autocomplete problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "jQuery autocomplete problem" Watch "jQuery autocomplete problem" New topic
Author

jQuery autocomplete problem

John Eric Hamacher
Ranch Hand

Joined: Apr 25, 2007
Posts: 230
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

Joined: Apr 25, 2007
Posts: 230
I get the JavaScript error "elems is undefined"
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
John Eric Hamacher
Ranch Hand

Joined: Apr 25, 2007
Posts: 230
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.








 
jQuery in Action, 2nd edition
 
subject: jQuery autocomplete problem