wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60766
    
  65

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.








 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jQuery autocomplete problem
 
Similar Threads
jQuery auto complete with jsf
AJAX Question
Calling a new JSP form a Spring Controller using Ajax
Deployment issue was 6.0
Oracle error on jsp page, but the sql runs fine in Oracle tool