Try

onTextCommand

This is called when the user selects something from the
popup, set as an attribute on the textbox element.
See also ontextrevert and oninput.

There is also the AutoCompleteSession onAutoComplete which
is called around the same time, just a bit earlier. I use
this to lookup the URI of the folder in the textbox, since
there is no name->value type architecture available.

If you want to dig around a working autocomplete session
have a look at Quick File.

http://www.paultomlin.com/projects/mozilla/thunderbird/quickfile/

Paul

Matt Chaput wrote:
I've created a custom auto-complete session in JS using code from an
old post by Neil (thanks Neil!). Now I'd like to know when the user
clicks one of the items in the results list.

Is there any way to get call an "onselect"-type function when the user
clicks/presses enter on a result? e.g. a polite way to get a handle on
the autocomplete popup's tree?

At this point I've tried so many possibilities without sucess I was
ready to re-implement autocomplete functionality entirely, except it
turns out Mozilla crashes if I put a tree inside a popup ;)

Thanks,

Matt
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to