Zend Certified Engineer

phpguru.org

Free PHP, Javascript and C# code

AutoComplete

A Jabbascript library which provides an autocomplete dropdown which you can attach to one or more form inputs (typically text inputs, or textareas). It functions the same as the Internet Explorer autocomplete dropdown, and works on MSIE, and Firefox (tested on IE6, 5.5 & 5 and Firefox 1.0.1).

You can get the code here.

Features

  • Works on MSIE, Firefox & Mozilla.
  • Easy setup.
  • Multiple dropdowns per page.
  • Provide your own data to populate the dropdown (naturally).
  • Can set max number of items shown at once, with scrolling support.

Demo

There's a simple demo here.

You can either press a key whilst focused on the input box, or you can double click the input box.

Requirements

The AutoComplete widget works with the following browsers:

  • Internet Explorer 5+
  • Firefox
  • Opera 8.0
  • Mozilla 1.5+ (May work on earlier version, but has been found not to work on version 1.0)

Link to me

If you use any of the code on this site (and if you don't I guess) or it makes your life easier, I'd appreciate a link - http://www.phpguru.org. Thanks.

Last modified: 16:23 29th December 2006