I think you should call ac in jQuery like this:
$( "#addblack" ).autocomplete({
source: "[**% c.uri_for('/userinfo','**complete_user', 'blacklist') %]"
});
and the json should be formatted like this:
[
{
label: "label"
value: "value"
}
..etc..
]
In my opinion you should use jQueryUI because it's official (very efficient
team working on it), unlike the simple jQuery plugins.
2011/7/2 Alex Povolotsky <[email protected]>
> On 07/01/11 21:18, Alan Humphrey wrote:
>
>> Firebug shows the following as the JSON content returned in their demo:
>>
>>
>> I've found
>> http://www.devbridge.com/**projects/autocomplete/jquery/<http://www.devbridge.com/projects/autocomplete/jquery/>-
>> works like a charm and well-documented.
>
>
> Alex
>
>
> ______________________________**_________________
> List:
> [email protected]<https://mail.google.com/mail/?view=cm&fs=1&tf=1&[email protected]>
> Listinfo:
> http://lists.scsys.co.uk/cgi-**bin/mailman/listinfo/catalyst<http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst>
> Searchable archive: http://www.mail-archive.com/**
> [email protected]/<http://www.mail-archive.com/[email protected]/>
> Dev site: http://dev.catalyst.perl.org/
>
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/