has anyone tried using jquery autocomplete plugin with DWR as data source.
i need autocompletion functionality for my page, but i am also using dwr instead of typical ajax call.
i found one link regarding this, but i am unable to locate the source code for this!
http://www.nabble.com/-autocomplete--jquery-%2B-dwr-td22691104s27240.html
can somebody please help me locating this source and using it?
regards
Its pretty simple, use DWR's ajax calling-technique and use jQuery's autocomplete method inside the callback option. Please refer the below example. Script imports, CSS imports should be in this order
Arun is right with his approach, but it could be needed to change a little thing. I tested it with DWR-3.0.0-RC2, jquery-1.7.2.min.js and jquery-ui-1.8.23.custom.min.js. Instead of:
define the source parameter:
Moreover that good answer can be slightly improved checking the autoCompTxt length. Something like this:
Of course, script and css imports and input text should be kept (see Arun's answer).
I don't really understand what Øyvind Marthinsen wrote, but I think that something like this:
should work.
It is pretty simple to use the jQuery UI autocomplete plugin (http://jqueryui.com/demos/autocomplete/) with dwr.
Example: