I'm trying to use the autocompleter from http://madrobby.github.io/scriptaculous/ajax-autocompleter/
function autoSuggest(inputTagId, divTagId) {
new Ajax.Autocompleter(inputTagId, divTagId, '/tmptypeaheadservlet', null);
}
But it throws as error "Object doesn't support this action" when the Ajax.Autocompleter is called.
Edit:
Here is how the function is getting called:
onkeypress="autoSuggest('Line_<%=OrderLineCounter%>','autoCompleteMenu_<%=OrderLineCounter%>')"
Did you try changing
nullwith{}? The function needs an empty object, not anull.Also id's should be in quotes:
new Ajax.Autocompleter("autocomplete", "autocomplete_choices", "/url/on/server", {});