Re: Searching in a list of values (menulist, textbox)

Michael Hofer <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <[email protected]>
Am 01.02.12 21:38, schrieb Michael Hofer:
> Am 26.01.12 12:35, schrieb Michael Hofer:
> Not exactly what I want. Any ideas how to access/store the id of the
> selected entry for later retrieval (while displaying the displayValue)?
> Is there a way to access the textbox from within the
> 'ProviderAutoCompleteResult' (nsIAutoCompleteResult) to attach something
> like a 'selectedId' attribute to it?

I'm now trying to use the comment field of the autocomplete textbox for 
my id property (accessible via textbox.controller.getCommentAt(index)).

I could call this in an ontextentered-handler attached to the textbox. 
But I couldn't find a way to get the index of the selected element. The 
'param' passed into the handler (which actually has to be called 'param' 
to work) is of type 'KeyboardEvent'.

Any ideas on how to get the selected index?

thanks,
Michael
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.