MooTools Autocomplete
A MooTools Autocompleter widget that creates a unobtrusive and customisable suggestion box for input fields from variable data sources. Try it out, it can load the suggestions from a local object or via XHR from a JSON or an XHTML source. Example in the Playground which includes an Local, Json and Ajax Autocompleter. Compatibility
Fully compatible with all A-Grade Browsers (Internet Explorer 6+, Opera 9, Firefox 1.5+ and Safari 2+)
Features
All classes extend the base class Autocompleter.Base, which provides all basic features to create an Autocompleter from any provided source. Both, Ajax.Json and Ajax.Json extend Autocompleter.Ajax.Base, which handles the query request and response.
Hi, Very nice. How can we add an url?
Hi,I am a Taiwaness. We can't agree our country name is "Province Of China". Taiwan is NOT a part of China! We are an independence country. Please remove the words "Province Of China".
Thanks for your modification.
Oh wow! your website is incredible!
Taiwan is an country without the foreign affairs ,hehe
Hi, Very nice and Taiwan is an Integral Part of Chinese Territory,it is NOT a COUNTRY! Please remove the words "Independent Country".
Taiwan will kick China's ass in a nuclear war!
Is this digitarald's script?
The rest of *our* world will kick your ass, Wu Xia, for playing with nuclear weapons! P.S. nice autocompletion
i want this example in a zip file with all the relecant files
Nice work. Any idea how to tie up with DB either using any tech php or jsp.
taiwan is not a country, just a province of China! Please correct the fault!
Taiwan for life :)
I would like to add multiple autocompleters to my page using the method for completer1, I can make the tokens no problem, but getting it to read to different inputs is where I'm having the issue. Any ideas?
Why can't I use the UP and DOWN keys to browse through the drop down list? Usually when you have at least 2 results, you should be able to move up and down within that list.
How can i use this example with mootools1.1
Very nice example. I think it is the best from all autocomplete examples for mootools
sevdim biz bu uygulamayı facebook tan biliyoruz saolun
Where whrite in injectChoice: ?? because the script inject the first form on my page... plz help me. sry for my english it s because i'm french xD thx. ddm
comentt commenr
what would be the case if i also want to get option ids (values) without displaying in the drop down.
nice autocomplete script !!
monkey monkey monkey
CHWu - it's just an example
cool I need it
really good one :)
This is useful for a dictionary system I am working on. Thanks!
Tanx Lot of Lot
i can't make it run with database =S
When the page use the mootools slide effect, tips added to the page, the tips can be used, but the sliding effect is null and void
If the webmaster set's taiwan as a independent country, well, have you think about what most of the chinese all over the world will think about?
Please show me where i can down load this source code?
The script does not include 'Autocompleter.Request.js', but does depend on this file. In other words: the above example will not work when copied until you add the mentioned file.
Very Good !
Sir would u mind sending the file "autocomplete.php" that we study to learn it formate.
excelent example but, if i wanna take the data from a database, u know if i want the data to be taken from a db how would it be?
thank you for your example
This script isn´t working into Chrome... When choose one option, the value in the result input is undefined
value of textbox becomes "Undefined" if you click on a suggested word
Works in firefox, but not IE or Chrome, however, this workaround by sofasurfer appears to fix it: Change lines 349 and 350 of Autocompleter.js from 349: 'mouseover': this.choiceOver.bind(this, [el]), 350: 'click': this.choiceSelect.bind(this, [el]) to 349: 'mouseover': this.choiceOver.bind(this, el), 350: 'click': this.choiceSelect.bind(this, el) or see the original post here: http://digitarald.de/forums/topic.php?id=2040
Motools autocompleter which works also in Webkit browsers you can find also on Google Code website: http://code.google.com/p/mootools-autocompleter/ Hope it will help someone :)
Hi When I select one item in my list, the displayed value is : undefined