If I create a textbox in a Firefox with a type of “autocomplete” I am able to get autocomplete working properly. However, the textbox is a intended to be used as search textbox (with autocomplete). Thus, in addition to autocomplete I also want the standard UI used when the textbox has a type of “search.” In particular, Firefox shows a magnifying glass that turns into an “X” when the user types into it.
Is there a clean (or, failing that, not so clean) way of accomplishing this?
Firefox Searchbar ,the one on right top usually, has
type="autocomplete"and has thesearchbuttonFirst: browser.xul of firefox has a
toolbaritemwhichsearchbarnested in it.searchbarhas the following css property in browser.css.That url in css property brings us to search.xml which has the
textboxand thesearchbuttonis added totextboxin ahboxas far as i can understand.Well this is not an total answer, but gives a head start for you or others who may contribute I guess. For further detail you can dig omni.jar in mozilla firefox directory.