I wonder if javascript can see the difference between the autocomplete() of jquery and the autocomplete() of jquery UI.
http://jqueryui.com/demos/autocomplete/
http://docs.jquery.com/Plugins/Autocomplete
I am using both versions and atm only the jquery one works. Is this due to syntax errors or because the functions can't be used together??
$("#auto").autocomplete($("#base_uri").val()+'ajax/search',{
req_type: "POST",
minChars: 1,
delay: 200
}).result(function(event, data, formatted) {
$("#message-add").hide();
$("#auto").show();
$("#auto").focus();
$("#fake_to").append('<span id="'+data[1]+'">'+formatted+', '+'</span>');
$("#to").val($("#to").val()+ data[1] +', ');
$("#auto").val('');
});
$(function() {
var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"ColdFusion",
"Erlang",
"Fortran",
"Groovy",
"Haskell",
"Java",
"JavaScript",
"Lisp",
"Perl",
"PHP",
"Python",
"Ruby",
"Scala",
"Scheme"
];
$( "#tags" ).autocomplete({
source: availableTags
});
});