(29.11.2011 14:16), István Vágó wrote: > Hi Lukasz, > > I have a jsonrpc function named "getProjectCodes" defined in Pyramid > that returns a python list of strings. > > And have classes like this: > > from pyjamas.ui.AutoComplete import AutoCompleteTextBox > from pyjamas.JSONService import JSONProxy > from pyjamas.ui import SimplePanel > > class myJSONService(JSONProxy): > def __init__(self): > JSONProxy.__init__(self, "/apis/rpc", ["getProjectCodes",]) > > class myClass: > def _init_(self): > self.panel=SimplePanel() > self.projectcodeInput=AutoCompleteTextBox() > self.panel.add(self.projectcodeInput) > self.myJSONService.getProjectCodes(self) > > def onRemoteResponse(self, response, request_info): > if request_info.method == 'getProjectCodes': > self.projectcodeInput.setCompletionItems(response)
I started from similar option, but I realized that hints in popup are always one char "late" to what you typed. So, when you type "a" - you see nothing, when you type "aa", you see "abba","abacus","aachen".... etc... am I right? -- pozdrawiam Łukasz Mach Pagema (http://www.pagema.net)

