Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!newsfeed101.telia.com!starscream.dk.telia.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Date: Sat, 20 Oct 2012 22:16:27 +0200 From: Luuk User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.javascript Subject: Re: Javascript for HTML select/option form with lots of entries References: <9dkal9-c2a.ln1@luuk.invalid.lan> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 42 NNTP-Posting-Host: 2001:980:9089:1:a1ce:ab5b:5489:7882 X-Trace: 1350764401 news.xs4all.nl 6984 [2001:980:9089:1:a1ce:ab5b:5489:7882]:39458 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.javascript:16759 On 20-10-2012 20:47, Luuk wrote: > On 20-10-2012 19:38, Alfred Molon wrote: >> In article <9dkal9-c2a.ln1@luuk.invalid.lan>, Luuk says... >>> Google says: >>> http://www.raymondcamden.com/index.cfm/2012/6/14/Example-of-a-dynamic-HTML5-datalist-control >>> >>> >>> or, to try this: >>> http://raymondcamden.com/demos/2012/jun/14/test2.html >> >> Very cool and runs on my FF browser. But does not run under IE (I tried >> with IE9). >> >> The behaviour is a bit different from what I described above. If you >> type for instance a '5', it shows all entries which contain a 5, not >> just those which start with a 5. >> > > if i type 'l' (lowercase L) > i see: > Leaning House > Life is a Horse > > so, only thing that start with an 'L' > > >> Is there anything which runs on all browsers? >> >> If at least the above code defaulted to the standard HTML select/option >> thing on browsers who do not support this HTML5 element, but no, on IE9 >> it shows all options of the list as text (not selectable). >> > > its using ajax (or jquery) > look at the code, and make it work for IE should not be so hard..... The manualpage for jquery is here: http://api.jqueryui.com/autocomplete/ with an example that works in IE i'm pretty sure there is a parameter to limit search on the start of a word.