<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: JavaScript combo box</title>
	<atom:link href="http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/</link>
	<description>Stay curious!</description>
	<lastBuildDate>Thu, 09 Feb 2012 09:56:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Ventsy Georgiev</title>
		<link>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-15497</link>
		<dc:creator>Ventsy Georgiev</dc:creator>
		<pubDate>Wed, 03 Dec 2008 12:39:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=18#comment-15497</guid>
		<description>Is there a way to add cyrillic options ?</description>
		<content:encoded><![CDATA[<p>Is there a way to add cyrillic options ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Lee</title>
		<link>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-15100</link>
		<dc:creator>Marc Lee</dc:creator>
		<pubDate>Mon, 08 Sep 2008 21:14:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=18#comment-15100</guid>
		<description>Sorry - couldn&#039;t get the typed value to be submitted with the form, even using the value = text; addition.

I must have been missing something else.

Thanks for this interesting approach.

-Marc Lee</description>
		<content:encoded><![CDATA[<p>Sorry &#8211; couldn&#8217;t get the typed value to be submitted with the form, even using the value = text; addition.</p>
<p>I must have been missing something else.</p>
<p>Thanks for this interesting approach.</p>
<p>-Marc Lee</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-14895</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Wed, 23 Jul 2008 17:06:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=18#comment-14895</guid>
		<description>I had an issue with IE6, it was not returning this.value.

To fix this problem, at the end of each with() block, add this line:    value = text;

Thank you so much for this code!!</description>
		<content:encoded><![CDATA[<p>I had an issue with IE6, it was not returning this.value.</p>
<p>To fix this problem, at the end of each with() block, add this line:    value = text;</p>
<p>Thank you so much for this code!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.xaprb.com/blog/2005/09/29/javascript-combo-box/#comment-14534</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Fri, 09 May 2008 15:15:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=18#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>
		<dc:creator>RojoSanKa</dc:creator>
		<pubDate>Thu, 10 Jan 2008 17:58:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=18#comment-14144</guid>
		<description>Great solution!  That&#039;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 &#039;window.event&#039; 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 &amp;&amp; combo.editing &amp;&amp; windowEvent &amp;&amp; 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 &#8211; Firefox back button is invoked when pressing delete and the combobox has a zero-length string.</p>
<p>Cause &#8211; 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 &#8211; 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 &#8211; 1);<br />
            }<br />
        }<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

