[Project_owners] Autocomplete

Maple.nu maple.nu at gmail.com
Fri Jul 8 01:28:17 EDT 2005


I can't find any documentation on how to do this on google. Can you
provide a short example?

/Sven

On 3/27/05, Neil Deakin <enndeakin at sympatico.ca> wrote:
> maple guy wrote:
> 
> >I've read:
> >http://www.xulplanet.com/references/elemref/ref_textboxFirefoxAutoComplete.html
> >
> >But there's no examples to be found on how to get it to work with your
> >own datasource. Browser history works but how do I put my own data
> >into the autocomplete list?
> >
> >
> >
> For Firefox, you need to write a component which implements
> nsIAutoCompleteSearch. It's contract id should look like:
>   @mozilla.org/autocomplete/search;1?name=blahblah
> 
> <textbox type="autocomplete" autocompletesearch="blahblah"/>
> 
> When nsIAutoCompleteSearch.startSearch is called, it should call it's
> listener's onSearchResult function for each result.
> 
> / Neil
> 
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
> 


-- 
Maple Team
email:    maple.nu at gmail.com
website: http://www.maple.nu


More information about the Project_owners mailing list