[jQuery] [autocomplete] jquery + dwr

[jQuery] [autocomplete] jquery + dwr

Hey guys,
I'm using jquery + autocomplete plugin (by Jörn) and I trying to make it work with DWR(<a href="http://directwebremoting.org/">http://directwebremoting.org/</a>). 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:
<span style="font-family: courier new,monospace;">TestAutoComplete.findAutoComplete(token, function(data) { /* do something with data*/ });</span>
How to make it work with autocomplete, that works like this:
<span style="font-family: courier new,monospace;">$("#city").autocomplete(cities);</span>
Thanks in advance<br clear="all">
--
<a href="http://plentz.org">http://plentz.org</a>