MooTools Autocomplete

Read more and download "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.




Web 2.0 Box Generator


Play with this script by changing the html bellow. Submit your changes by clicking on this bar. Refresh the page to reset changes.
Play with this script by changing the html above. Submit your changes by clicking on this bar. Refresh the page to reset changes.

Comment on this example

Name
Url
Comment
Captcha
 

 

1
Huy.zhu
2010-01-25 19:41:16
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

2
Jameswilliam
2009-12-02 01:51:57
Yesterday I wrote a post describing why I decided to switch from MooTools to jQuery, and today I have my first small comparison between the two. For one project that I am working on I have a simple autocomplete text input, and below I will show how I completed this little task in both MooTools and jQuery. I am using plugins for both of the frameworks in order to accomplish this task, so this doesn't truly compare the functionality of the framework. But, this is a common task that I have and it starts to give me a feel for how the two match up. The data returned from the server side script is different for each of these two methods debit cards. The MooTools Method gets an array returned, whereas the jQuery method gets the results returned as a newline delimited file (one autocomplete suggestion per line).

3
Smashit
2009-03-10 07:44:55
nice autocomplete script !!

4
Mudasser
2009-02-17 03:18:04
what would be the case if i also want to get option ids (values) without displaying in the drop down.

5
Ddm57
2008-12-12 07:12:48
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

6
Snowcore
2008-10-21 02:09:02
Very nice example. I think it is the best from all autocomplete examples for mootools

7
Benji
2008-10-06 05:57:05
How can i use this example with mootools1.1

8
Marcin
2008-09-28 10:17:09
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.

9
R Walsh
2008-08-11 07:20:00
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?

10
DesiTech
2008-05-23 07:27:59
Nice work. Any idea how to tie up with DB either using any tech php or jsp.

11
Pucto
2008-05-10 15:15:03
i want this example in a zip file with all the relecant files

12
Harald Aka Digitarald
2008-03-04 02:29:03
Visit digitarald.de for the real project site and a better demo. Thx for sharing content from my site, ajaxdaddy ;) The country list is from the International Components for Unicode library, don't mix this demo up with political ideas, thx.

13
The World
2008-02-26 04:28:41
The rest of *our* world will kick your ass, Wu Xia, for playing with nuclear weapons! P.S. nice autocompletion

14
Jonas
2007-12-29 20:16:24
Is this digitarald's script?

15
Wu Xia
2007-12-01 12:12:36
Taiwan will kick China's ass in a nuclear war!

16
Xiaoyo
2007-10-16 18:32:14
Hi, Very nice and Taiwan is an Integral Part of Chinese Territory,it is NOT a COUNTRY! Please remove the words "Independent Country".

17
Jacques
2007-10-09 03:03:37
Taiwan is an country without the foreign affairs ,hehe

18
Gustav
2007-09-22 03:13:24
Very cool!

19
Luxbot
2007-09-21 21:07:36
Oh wow! your website is incredible!

20
Nice
2007-08-20 03:00:49
really nice

21
CHWu
2007-07-22 23:53:40
Thanks for your modification.

22
CHWu
2007-07-19 19:16:22
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".

23
Soundtraker
2007-07-12 15:14:49
Hi, Very nice. How can we add an url?