JavaScript Auto-complete Control

Revision as of 18:47, 16 June 2008 by Ike (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This script provides a method for basic auto-complete functionality. You give it a textbox and an array, and when the user types in the textbox it will pop up a list of suggested items.

Link or uploaded here: Media:Actb.zip

Multiple Auto-completes on one Page

Attach actb to the fields like this:

new actb(crmForm.all.name, GetAccountNames());
new actb(crmForm.all.address1_line1, customarray);

Without new all fields will have the same source array for the dropdown's contents.

Source Code

<splist />