<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: JavaScript combo box</title>
	<link>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/</link>
	<description>Stay curious!</description>
	<pubDate>Fri, 16 May 2008 03:54:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: Richard</title>
		<link>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-14534</link>
		<author>Richard</author>
		<pubDate>Fri, 09 May 2008 15:15:32 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-14534</guid>
		<description>Is there a way to edit values already entered.</description>
		<content:encoded><![CDATA[<p>Is there a way to edit values already entered.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RojoSanKa</title>
		<link>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-14144</link>
		<author>RojoSanKa</author>
		<pubDate>Thu, 10 Jan 2008 17:58:52 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-14144</guid>
		<description>Great solution!  That's how code should be written, short and to the point.

If I may, here is a Firefox compatibility fix:

Issue - Firefox back button is invoked when pressing delete and the combobox has a zero-length string.

Cause - Firefox does not recognize the 'window.event' object, instead it looks for the event to be passed through the function parameter.

To resolve - Modify the onkeydown event wiring as follows:

document.onkeydown = function(e) {
   var windowEvent = (e) ? e : window.event;
   if (combo &#38;&#38; combo.editing &#38;&#38; windowEvent &#38;&#38; windowEvent.keyCode == 8) {
        windowEvent.cancelBubble = true;
        windowEvent.returnValue = false;
        if (combo.insertSpace) {
            combo.insertSpace = false;
        }
        else {
            with (combo.options[combo.options.length - 1]) {
                text = text.substring(0, text.length - 1);
            }
        }
    }
}</description>
		<content:encoded><![CDATA[<p>Great solution!  That&#8217;s how code should be written, short and to the point.</p>
<p>If I may, here is a Firefox compatibility fix:</p>
<p>Issue - Firefox back button is invoked when pressing delete and the combobox has a zero-length string.</p>
<p>Cause - Firefox does not recognize the &#8216;window.event&#8217; object, instead it looks for the event to be passed through the function parameter.</p>
<p>To resolve - Modify the onkeydown event wiring as follows:</p>
<p>document.onkeydown = function(e) {<br />
   var windowEvent = (e) ? e : window.event;<br />
   if (combo &amp;&amp; combo.editing &amp;&amp; windowEvent &amp;&amp; windowEvent.keyCode == 8) {<br />
        windowEvent.cancelBubble = true;<br />
        windowEvent.returnValue = false;<br />
        if (combo.insertSpace) {<br />
            combo.insertSpace = false;<br />
        }<br />
        else {<br />
            with (combo.options[combo.options.length - 1]) {<br />
                text = text.substring(0, text.length - 1);<br />
            }<br />
        }<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jj</title>
		<link>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-6074</link>
		<author>jj</author>
		<pubDate>Fri, 27 Apr 2007 14:59:05 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-6074</guid>
		<description>&lt;p&gt;This is exactly what I have been looking for.  For my application, this works better than the one you sited above -- this is a bit more intuitive from the user's perspective.  Thank you for making it available.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>This is exactly what I have been looking for.  For my application, this works better than the one you sited above &#8212; this is a bit more intuitive from the user&#8217;s perspective.  Thank you for making it available.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathew</title>
		<link>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-5990</link>
		<author>Mathew</author>
		<pubDate>Tue, 24 Apr 2007 11:22:53 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-5990</guid>
		<description>&lt;p&gt;Looks great. I got one problem in IE. If i try to get the value of the new entry in the select box using a Java Script function ie. document.forms[0].editable.value; it is not giving anything. But in Mozilla it gives the new value entered. Any observations on this?&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Looks great. I got one problem in IE. If i try to get the value of the new entry in the select box using a Java Script function ie. document.forms[0].editable.value; it is not giving anything. But in Mozilla it gives the new value entered. Any observations on this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: keep</title>
		<link>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-1979</link>
		<author>keep</author>
		<pubDate>Mon, 25 Sep 2006 19:20:45 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-1979</guid>
		<description>&lt;p&gt;I can't write some  national characters what I need. eg: ß or áéóü&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>I can&#8217;t write some  national characters what I need. eg: ß or áéóü</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Hermany</title>
		<link>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-1737</link>
		<author>Paul Hermany</author>
		<pubDate>Sat, 09 Sep 2006 10:06:45 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-1737</guid>
		<description>&lt;p&gt;Haven't looked at the code, but CB breaks in Mozilla when you hit the delete key.  If you delete characters after typing in the CB, one more delete press will invoke the browser back button.  Also, CB doesn't show text cursor when typable.  Nice work on the combo box.  I'd like to see a cross browser inplementation.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Haven&#8217;t looked at the code, but CB breaks in Mozilla when you hit the delete key.  If you delete characters after typing in the CB, one more delete press will invoke the browser back button.  Also, CB doesn&#8217;t show text cursor when typable.  Nice work on the combo box.  I&#8217;d like to see a cross browser inplementation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-1241</link>
		<author>Xaprb</author>
		<pubDate>Wed, 26 Jul 2006 22:42:12 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-1241</guid>
		<description>&lt;p&gt;Just a quick note, here's a good article on &lt;a href="http://www.digital-web.com/articles/building_accessible_widgets_for_the_web/"&gt;building an accessible combo box&lt;/a&gt; (based on a &lt;a href="http://particletree.com/features/upgrade-your-select-element-to-a-combo-box/index.php"&gt;combo box presented at particletree&lt;/a&gt;).  The widget presented in the Digital Web article has some advantages over what I've done (accessibility), though the one at Particle Tree is very similar to mine.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Just a quick note, here&#8217;s a good article on <a href="http://www.digital-web.com/articles/building_accessible_widgets_for_the_web/">building an accessible combo box</a> (based on a <a href="http://particletree.com/features/upgrade-your-select-element-to-a-combo-box/index.php">combo box presented at particletree</a>).  The widget presented in the Digital Web article has some advantages over what I&#8217;ve done (accessibility), though the one at Particle Tree is very similar to mine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-1240</link>
		<author>Xaprb</author>
		<pubDate>Wed, 26 Jul 2006 22:37:12 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-1240</guid>
		<description>&lt;p&gt;Certainly.  Just style the SELECT with CSS.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Certainly.  Just style the SELECT with CSS.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-1239</link>
		<author>Phil</author>
		<pubDate>Wed, 26 Jul 2006 21:32:14 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-1239</guid>
		<description>&lt;p&gt;Is there any way to fix the width so it doesn't change size?&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Is there any way to fix the width so it doesn&#8217;t change size?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony Nguyen</title>
		<link>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-985</link>
		<author>Anthony Nguyen</author>
		<pubDate>Sun, 25 Jun 2006 18:59:20 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-985</guid>
		<description>&lt;p&gt;Simple and free.  It is what I want.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Simple and free.  It is what I want.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
