Celia
2006-Jul-28 12:04 UTC
Autocomplete feature for textarea (for entering multiple email addresses)
Hi, Is there a script.acul.us code or function that will let me do gmail like autocomplete feature for textarea? Cheers, Celia
On my Autocompleter.local result I spotted that every LI has a class="" attribute with no value. Is there a way to control whats included in this attribute? Or better still can I control how Autocompleter.Local formats its result?
Owen Franssen wrote:> On my Autocompleter.local result I spotted that every LI has a class="" > attribute with no value. Is there a way to control whats included in > this attribute? Or better still can I control how Autocompleter.Local > formats its result? > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >Yup, just use CSS selectors: div.auto_complete ul { border:1px solid #888; margin:0; padding:0; width:100%; list-style-type:none; } div.auto_complete ul li { margin:0; padding:0px; font-size: 10pt; } div.auto_complete ul li.selected { background-color: #bbb; } div.auto_complete ul strong.highlight { color: #800; margin:0; padding:0; } Where auto_complete is the class for the div which holds the auto-completion results. -- Ola Bini (http://ola-bini.blogspot.com) JvYAML, RbYAML, JRuby and Jatha contributor System Developer, Karolinska Institutet (http://www.ki.se) OLogix Consulting (http://www.ologix.com) "Yields falsehood when quined" yields falsehood when quined.
Geo
2006-Jul-28 15:53 UTC
Re: Autocomplete feature for textarea (for entering multiple email addresses)
Yes, just use a <textarea> tag instead. <textarea rows="2" id="localac" cols="65"></textarea> <div id="localac_list" class="pagecomplete" style="display:none"></div> <script> new Autocompleter.Local(''localac'', ''localac_list'', ......); </script> George On 7/28/06, Celia <celia.rexselin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi, > Is there a script.acul.us code or function that will let me do gmail > like autocomplete feature for textarea? > > Cheers, > Celia > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >-- "The wheel''s spinning, but the hamster''s dead" _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs