The jQuery UI branch of the autocomplete plugin supports a source-option as an alternative to the url- und data-options. Give it a try and let us know if it works for you: http://jquery-ui.googlecode.com/svn/branches/dev/autocomplete/ http://jqueryui.pbwiki.com/SelectComboboxAutocomplete
Jörn On Tue, Mar 24, 2009 at 10:39 PM, Diego Plentz <diego.pi...@gmail.com> wrote: > Hey guys, > > I'm using jquery + autocomplete plugin (by Jörn) and I trying to make it > work with DWR(http://directwebremoting.org/). My problem is that jquery > autocomplete takes a url or data directly, but to make DWR works properly, I > must use their javascript functions and handle the callback. Here is a > example: > > TestAutoComplete.findAutoComplete(token, function(data) { /* do something > with data*/ }); > > How to make it work with autocomplete, that works like this: > > $("#city").autocomplete(cities); > > Thanks in advance > > -- > http://plentz.org >