Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Working Example of JQuery AutoComplete

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

Searched the web for an example, but could'nt find a working one.

I am looking for a working example of JQuery AutoComplete populated by values from the database using JSP.

Kindly help.
 
Marshal
Posts: 67463
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are populating from a DB and using JSP, you can either pre-populate a JavaScript construct with data to use locally, or employ Ajax to get it dynamically.

Check out some of the code from jQuery in Action (2nd Ed). The code examples are free to download. Off the top of my head I forget which chapter but it's one of the latest ones.

[edit: chapter 11, section 4, to be exact.]
 
Mark Butcher
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the reply, but I couldnt find what I need.
 
Bear Bibeault
Marshal
Posts: 67463
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As in couldn't find the files, or didn't contain what you wanted?

Those are the most complete examples I know of aside from those on the jQuery UI site itself. You should be able to write your own code given both sets of examples.
 
Mark Butcher
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As per the contents of the book, the autocomplete is part of chapter 11 and I couldnt find that chapter....
 
Bear Bibeault
Marshal
Posts: 67463
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Click on the link to download the source code, unpack the zip file, and the folder is named chapter11. I'm not sure how much easier it could be to find.
 
Mark Butcher
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Bear, but I am a beginner in JQuery, not able to understand the example in the source.
I would request you a simple basic example that would help me to understand the concept.
 
Bear Bibeault
Marshal
Posts: 67463
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It can't get much more basic than the examples on the jQuery UI site. There's nothing I can post that would be any more basic.

You're going to need to give it a try and post your code with any difficulties you are having. Keep it simple.


 
An elephant? An actual elephant. Into the apartment. How is the floor still here. Hold this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic