Forums
 This topic is locked 
             Ajax AutoComplete
 Posted 08 Oct 2007  06:38:35 
  1 
     has   voted 
  08 Oct 2007  06:38:35 chris desborough posted: 
 Hi,Looking at purchasing AutoComplete. Just want to know if another Ajax routine can be placed on the input field when the field has been autofilled with a match. I intend to use the autofilled field data to send off another Ajax request to fill other form fields after the field loses focus.
For instance, on the source in your demo we have.
<td><input id="autocomplete1" type="text" name="a" />
<script type='text/javascript'>
$(document).ready(
function() {
$('#autocomplete1').autocomplete('autocomplete-tpl-stateextension-html-Countries-1.txt',
{
opacity : .7,
delay : 100,
autoFill : true,
multiple : false,
minChars : 1,
highlightClass : 'ac_highlight',
inputClass : 'ac_input',
loadingClass : 'ac_loading',
resultsClass : 'ac_results',
fxShow : { type:'fade' },
fxHide : { type:'fade' }
})});
</script></td>
Can I then add another Ajax function like "onChange="GetMoreData(this.value)" to this input field.
Hope I'm explaining this correctly.
Cheers