[ Back to the index ]

The jscAutoComplete and its main functions

User functions
  1. acAutoComplete - Show the jscAutoComplete control
  2. acDelayHide - Hide the jscAutoComplete control

acAutoComplete

Used to show the autocomplete list for a control. Should be called from the onkeyup event handler, and take the following arguaments: objID (the ID of the text input control surrounded by speach marks), event, the event object, and aACList, the array of words used for the auto complete list. For more information see Using the acAutoComplete control.
onkeyup='Javascript:acAutoComplete("my_text",event,words_list);'
Above: the "onkeyup" property for a text input control that should display an auto complete list; "my_text" should be the ID of the control, and words_list should be a Javascript array of words to include in the auto complete suggestions list.


acDelayHide

Should be called by any text control that display an auto complete list on the onblur event.
onblur='Javascript:acDelayHide();'
Above: hides an auto complete control once the associated text input is no longer being used.