Look at the demo page:
http://jquery.bassistance.
The code for the "Month" textbox is attached so you can see how it is used:
Main Topics
Browse All TopicsI have a huge database which holds almost half a million words in it, and I want to connect that to a dropdown menu that would have autocomplete possibly using JQUERY. The problem I have is the data is too big and would be too intensive on the MySQL server we have, can someone suggest the best method to use.
Is it possible to go on to the database once pickup any char starting with say "SW" and then put all the words starting with "SW" in an array and then maybe feed it to the auto-completer? if possible can someone please direct me to the right way of doing that or any other method one would think might be easier to use.
Thanks in advance for your time
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Look at the demo page:
http://jquery.bassistance.
The code for the "Month" textbox is attached so you can see how it is used:
Hello ,
Is it possible to go on to the database once pickup any char starting with say "SW" and then put all the words starting with "SW" in an array and then maybe feed it to the auto-completer
Yes , the input word is queried against the database the results are collected in array and are fed to the autocompleter
I have a huge database which holds almost half a million words in it
We are querying the word against database how large is the database
Im including all the code and jquery file as zip . Please check the code and let me know if you need anything else .
navinbabu:
Thanks for the tip, how responsive is your autocompleter with such a huge data, and I have also noticed your sql statements limits to 10 elements of data, so what happens if the keyword I am looking for say "SW" had more than 10,000 elements all starting with "SW" wouldnt that mean I am not getting the correct info populated into the array?
PS. I would love to see your whole script as you said in Zipped format.
again, Many thanks.
hielo:
The info you have given are a very valuable information, I thank you for your effort.
>>how responsive is your autocompleter with such a huge data,
because the size of your data is huge, you should only query the db after certain number of characters have been typed. The example posted above will query the db as soon as the first char is typed. If you want the db to be queried after two elements have been typed, I suggest you change:
Yes helio is right u should query the database once the user typed minimum no of words .
@ hielo : May be that is what they call it experience :P
Anyways aniga42
Im including the code as zip with the changes helio suggested
Change the parameters as required and PHP file ofcourse database connection is required .
I tried uplaoding it here but it seems EE doesnt allow it so im uplaoded the zip in to my domain ,,
http://www.thetruehd.com/e
Cheers
>>I tried uplaoding it here but it seems EE doesn't allow it
I've never tried uploading a zip file here, but what may actually work is if you rename you ee.zip to ee.zip.txt and try uploading it. Then aniga42 will just need to rename the ee.zip.txt back to ee.zip before extracting the contents. Again, I am just guessing that will work (must be that experience factor at work again huh :)
Business Accounts
Answer for Membership
by: hieloPosted on 2009-08-07 at 09:34:28ID: 25044540
Here's a jQuery autocomplete plugin: ry-plugins /jquery-pl ugin- autoc omplete/
gins/Autoc omplete/ au tocomplete #url_or_da taoptions
http://bassistance.de/jque
One of the options is:
minChar
If you were to set it to 3, then the user would need to type at least three chars before it makes a request to the server. Available options are here:
http://docs.jquery.com/Plu