<?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"
	>
<channel>
	<title>Comments on: SelectBox replacement : Version 0.4 released</title>
	<atom:link href="http://www.brainfault.com/2007/12/12/selectbox-replacement-version-04-released/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brainfault.com/2007/12/12/selectbox-replacement-version-04-released/</link>
	<description>Just another blog</description>
	<pubDate>Mon, 01 Dec 2008 16:56:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Doug</title>
		<link>http://www.brainfault.com/2007/12/12/selectbox-replacement-version-04-released/#comment-146</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Thu, 14 Feb 2008 00:06:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainfault.com/2007/12/12/selectbox-replacement-version-04-released/#comment-146</guid>
		<description>First off, this is a really nice script.  Thank you for sharing! I am experiencing a similar issue to Kevin:

IE6, IE7, Safari (Windows) have an issue with the scrollbar.  When clicking to scroll, the menu disappears.</description>
		<content:encoded><![CDATA[<p>First off, this is a really nice script.  Thank you for sharing! I am experiencing a similar issue to Kevin:</p>
<p>IE6, IE7, Safari (Windows) have an issue with the scrollbar.  When clicking to scroll, the menu disappears.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brainfault</title>
		<link>http://www.brainfault.com/2007/12/12/selectbox-replacement-version-04-released/#comment-141</link>
		<dc:creator>brainfault</dc:creator>
		<pubDate>Sat, 09 Feb 2008 18:05:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainfault.com/2007/12/12/selectbox-replacement-version-04-released/#comment-141</guid>
		<description>hi
a new version will be available by monday which will fix the highlight issue</description>
		<content:encoded><![CDATA[<p>hi<br />
a new version will be available by monday which will fix the highlight issue</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Heine</title>
		<link>http://www.brainfault.com/2007/12/12/selectbox-replacement-version-04-released/#comment-133</link>
		<dc:creator>Robert Heine</dc:creator>
		<pubDate>Fri, 08 Feb 2008 13:04:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainfault.com/2007/12/12/selectbox-replacement-version-04-released/#comment-133</guid>
		<description>There was a little error in die script. I had to hover the element, that was firstly selected, in order to select another one. Otherwise it didn't work. 

Here's the function, i modified. Perhaps it's usefull for someone:


function getSelectOptions(parentid) {
		var select_options = new Array();
		var ul = document.createElement('ul');
		$select.children('option').each(function() {
			var li = document.createElement('li');
			li.setAttribute('id', parentid + '_' + $(this).val());
			li.innerHTML = $(this).html();
			if ($(this).is(':selected')) {
				$input.val($(this).html());
				$(li).addClass(opt.hoverClass);
			}
			ul.appendChild(li);
			$(li)
			.mouseover(function(event) {
				hasfocus = 1;
				if (opt.debug) console.log('out on : '+this.id);
				jQuery(event.target, $container).addClass(opt.hoverClass);
			})
			.mouseout(function(event) {
				hasfocus = -1;
				if (opt.debug) console.log('out on : '+this.id);
				jQuery(event.target, $container).removeClass(opt.hoverClass);
			})
			.click(function(event) {
				if (opt.debug) console.log('click on :'+this.id);
				$('.'+opt.hoverClass).removeClass(opt.hoverClass); // ADDED: removes all "select"-classes, so the clicked Element is the only "selected" one.
				$(this).addClass(opt.hoverClass);
				setCurrent();
				hideMe();
			});
		});
		return ul;
	}</description>
		<content:encoded><![CDATA[<p>There was a little error in die script. I had to hover the element, that was firstly selected, in order to select another one. Otherwise it didn&#8217;t work. </p>
<p>Here&#8217;s the function, i modified. Perhaps it&#8217;s usefull for someone:</p>
<p>function getSelectOptions(parentid) {<br />
		var select_options = new Array();<br />
		var ul = document.createElement(&#8217;ul&#8217;);<br />
		$select.children(&#8217;option&#8217;).each(function() {<br />
			var li = document.createElement(&#8217;li&#8217;);<br />
			li.setAttribute(&#8217;id&#8217;, parentid + &#8216;_&#8217; + $(this).val());<br />
			li.innerHTML = $(this).html();<br />
			if ($(this).is(&#8217;:selected&#8217;)) {<br />
				$input.val($(this).html());<br />
				$(li).addClass(opt.hoverClass);<br />
			}<br />
			ul.appendChild(li);<br />
			$(li)<br />
			.mouseover(function(event) {<br />
				hasfocus = 1;<br />
				if (opt.debug) console.log(&#8217;out on : &#8216;+this.id);<br />
				jQuery(event.target, $container).addClass(opt.hoverClass);<br />
			})<br />
			.mouseout(function(event) {<br />
				hasfocus = -1;<br />
				if (opt.debug) console.log(&#8217;out on : &#8216;+this.id);<br />
				jQuery(event.target, $container).removeClass(opt.hoverClass);<br />
			})<br />
			.click(function(event) {<br />
				if (opt.debug) console.log(&#8217;click on :&#8217;+this.id);<br />
				$(&#8217;.'+opt.hoverClass).removeClass(opt.hoverClass); // ADDED: removes all &#8220;select&#8221;-classes, so the clicked Element is the only &#8220;selected&#8221; one.<br />
				$(this).addClass(opt.hoverClass);<br />
				setCurrent();<br />
				hideMe();<br />
			});<br />
		});<br />
		return ul;<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawn Roser</title>
		<link>http://www.brainfault.com/2007/12/12/selectbox-replacement-version-04-released/#comment-63</link>
		<dc:creator>Shawn Roser</dc:creator>
		<pubDate>Thu, 10 Jan 2008 22:24:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainfault.com/2007/12/12/selectbox-replacement-version-04-released/#comment-63</guid>
		<description>This is a great plugin; thank you so much for creating it.  I made one small modification you might find useful and I also have a request for the next version.

I added the "esc" key to the keyCode switch statement so the menu disappears when a user presses "esc."

case 27: // esc
     hideMe();
     break;

My request is to have the ability to use the keyboard to jump to the different options in the drop down menu.  I've only seen this done on one other plugin (http://dev.jquery.com/~cbach/demos/selectbox/) which works in Firefox but breaks in IE6+.  It would be great if you could add this functionality.  

On a side note, I'll see what I can do about fixing the Mac "enter" bug.  I haven't had much luck so far.</description>
		<content:encoded><![CDATA[<p>This is a great plugin; thank you so much for creating it.  I made one small modification you might find useful and I also have a request for the next version.</p>
<p>I added the &#8220;esc&#8221; key to the keyCode switch statement so the menu disappears when a user presses &#8220;esc.&#8221;</p>
<p>case 27: // esc<br />
     hideMe();<br />
     break;</p>
<p>My request is to have the ability to use the keyboard to jump to the different options in the drop down menu.  I&#8217;ve only seen this done on one other plugin (http://dev.jquery.com/~cbach/demos/selectbox/) which works in Firefox but breaks in IE6+.  It would be great if you could add this functionality.  </p>
<p>On a side note, I&#8217;ll see what I can do about fixing the Mac &#8220;enter&#8221; bug.  I haven&#8217;t had much luck so far.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brainfault</title>
		<link>http://www.brainfault.com/2007/12/12/selectbox-replacement-version-04-released/#comment-52</link>
		<dc:creator>brainfault</dc:creator>
		<pubDate>Sat, 15 Dec 2007 06:59:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainfault.com/2007/12/12/selectbox-replacement-version-04-released/#comment-52</guid>
		<description>@Max Turkin: I'm going to test this as soon as get home 

@kevin : hmm I think you should format and reinstall your windows ;-). ok, seriously can you send a screenshot because I've just tested with IE6 windows &#038; linux using wine , FF2 win &#038; linux and it just works fine with me</description>
		<content:encoded><![CDATA[<p>@Max Turkin: I&#8217;m going to test this as soon as get home </p>
<p>@kevin : hmm I think you should format and reinstall your windows ;-). ok, seriously can you send a screenshot because I&#8217;ve just tested with IE6 windows &#038; linux using wine , FF2 win &#038; linux and it just works fine with me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.brainfault.com/2007/12/12/selectbox-replacement-version-04-released/#comment-51</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Fri, 14 Dec 2007 17:00:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainfault.com/2007/12/12/selectbox-replacement-version-04-released/#comment-51</guid>
		<description>Doesn't work at all in any browser I tried FF 2, IE6/7. It styles up fine, until you click it and select something from a list.

FF2: Can't click and select the first option. Selecting any option doesn't update the drop down box with the value.

IE6: Scrollbar doesnt appear.

IE7: Clicking the scrollbar in the dropdown makes it vanish altogether.</description>
		<content:encoded><![CDATA[<p>Doesn&#8217;t work at all in any browser I tried FF 2, IE6/7. It styles up fine, until you click it and select something from a list.</p>
<p>FF2: Can&#8217;t click and select the first option. Selecting any option doesn&#8217;t update the drop down box with the value.</p>
<p>IE6: Scrollbar doesnt appear.</p>
<p>IE7: Clicking the scrollbar in the dropdown makes it vanish altogether.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max Turkin</title>
		<link>http://www.brainfault.com/2007/12/12/selectbox-replacement-version-04-released/#comment-50</link>
		<dc:creator>Max Turkin</dc:creator>
		<pubDate>Thu, 13 Dec 2007 16:41:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainfault.com/2007/12/12/selectbox-replacement-version-04-released/#comment-50</guid>
		<description>Hi,

May be you'll find useful such ideas:

var hasfocus = 0;
var mouseOverOnContainer = 0;  //added

.....

$container.addClass(options.containerClass);
//next lines added to process correctly scrolling of container with help of scrollbars
$container.mouseover(function(){mouseOverOnContainer = true; });                $container.mouseout(function(){mouseOverOnContainer = false; });
//return focus to input, because blur handler should work
$container.scroll(function(){$input.focus();}); 

.....

// &#124;&#124; mouseOverOnContainer added
.blur(function() {
  if ($container.is(':visible') &#38;&#38; (hasfocus &#62; 0 &#124;&#124; mouseOverOnContainer)) {


Good luck.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>May be you&#8217;ll find useful such ideas:</p>
<p>var hasfocus = 0;<br />
var mouseOverOnContainer = 0;  //added</p>
<p>&#8230;..</p>
<p>$container.addClass(options.containerClass);<br />
//next lines added to process correctly scrolling of container with help of scrollbars<br />
$container.mouseover(function(){mouseOverOnContainer = true; });                $container.mouseout(function(){mouseOverOnContainer = false; });<br />
//return focus to input, because blur handler should work<br />
$container.scroll(function(){$input.focus();}); </p>
<p>&#8230;..</p>
<p>// || mouseOverOnContainer added<br />
.blur(function() {<br />
  if ($container.is(&#8217;:visible&#8217;) &amp;&amp; (hasfocus &gt; 0 || mouseOverOnContainer)) {</p>
<p>Good luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max Turkin</title>
		<link>http://www.brainfault.com/2007/12/12/selectbox-replacement-version-04-released/#comment-49</link>
		<dc:creator>Max Turkin</dc:creator>
		<pubDate>Thu, 13 Dec 2007 15:05:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainfault.com/2007/12/12/selectbox-replacement-version-04-released/#comment-49</guid>
		<description>Sorry, overflow-x:hidden -&#62; overflow-x:auto</description>
		<content:encoded><![CDATA[<p>Sorry, overflow-x:hidden -&gt; overflow-x:auto</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max Turkin</title>
		<link>http://www.brainfault.com/2007/12/12/selectbox-replacement-version-04-released/#comment-48</link>
		<dc:creator>Max Turkin</dc:creator>
		<pubDate>Thu, 13 Dec 2007 15:04:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainfault.com/2007/12/12/selectbox-replacement-version-04-released/#comment-48</guid>
		<description>Hi,

I was using your plugin, thx.
It works not very good under Mac/Safari2.0.2 (multi-safari installation) at least, I was not tested deeply. I have selectbox wrapper limited by height with overflow-x:hidden, navigation through options by scroll button. Selection was working incorrectly.
This fix helpt me. Hope it will be useful.

.click(function(event) {
if (opt.debug) console.log('click on :'+this.id);
//next line was added
$('LI', $container).removeClass(opt.hoverClass);
$(this).addClass(opt.hoverClass);

Good luck.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I was using your plugin, thx.<br />
It works not very good under Mac/Safari2.0.2 (multi-safari installation) at least, I was not tested deeply. I have selectbox wrapper limited by height with overflow-x:hidden, navigation through options by scroll button. Selection was working incorrectly.<br />
This fix helpt me. Hope it will be useful.</p>
<p>.click(function(event) {<br />
if (opt.debug) console.log(&#8217;click on :&#8217;+this.id);<br />
//next line was added<br />
$(&#8217;LI&#8217;, $container).removeClass(opt.hoverClass);<br />
$(this).addClass(opt.hoverClass);</p>
<p>Good luck.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.661 seconds -->
