<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>this.rand() &#187; computing</title>
	<atom:link href="http://www.thisrand.com/tag/computing/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thisrand.com</link>
	<description>the life of Ryan Meinzer and Jessica Meinzer</description>
	<lastBuildDate>Mon, 19 Sep 2011 01:41:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Tweaking Jquery AutoSuggest</title>
		<link>http://www.thisrand.com/2011/01/tweaking-jquery-autosuggest</link>
		<comments>http://www.thisrand.com/2011/01/tweaking-jquery-autosuggest#comments</comments>
		<pubDate>Mon, 31 Jan 2011 17:19:52 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[computing]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[geekdom]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://www.thisrand.com/?p=1521</guid>
		<description><![CDATA[Tweaking the Drew Wilson Jquery autosuggest script to display a full list on double click without typing any input.]]></description>
			<content:encoded><![CDATA[<p>I have been using the <a target="_blank" class="zem_slink" title="JQuery" rel="homepage" href="http://jquery.com/">JQuery library</a> for a long time now, and am still amazed at what people get it to do.  One feature that the base libaray was really lacking was a good <a target="_blank" class="zem_slink" title="Incremental search" rel="wikipedia" href="http://en.wikipedia.org/wiki/Incremental_search">Autosuggest</a> for a text input.  It needed to be <a target="_blank" class="zem_slink" title="Ajax (programming)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Ajax_%28programming%29">AJAX</a> driven, and understand having multiple values.</p>
<p>I found a great example of what I wanted at <a target="_blank" href="http://code.drewwilson.com/entry/autosuggest-jquery-plugin" target="_blank">Drew Wilson&#8217;s blog</a>, complete with almost all the features I needed.</p>
<p>One thing his script is really lacking is a good way to show ALL the results.  We have a huge category list, and want to let someone browse them all.  In the base script, this isn&#8217;t going to work, since there isnt a way to make the look up fire off without input.  I didnt want my users to have to enter in, one by one, each letter of the alphabet looking for what they wanted, so I settled on using a double click event to force the display of the entire list.</p>
<p>And here is how to make that happen:</p>
<p>In the js file (jquery.autoSuggest.js) you will need to make some changes.</p>
<p>~line 149 add:</p>
<pre> }).dblclick(<a target="_blank" class="zem_slink" title="Function (mathematics)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Function_%28mathematics%29">function</a>(){</pre>
<pre> if (timeout){ clearTimeout(timeout); }</pre>
<pre> timeout = setTimeout(function(){ keyChange(); }, opts.keyDelay);</pre>
<p>so it will look like:</p>
<pre> }).blur(function(){</pre>
<pre> if($(this).val() == "" &amp;&amp; values_input.val() == "" &amp;&amp; prefill_value == ""){</pre>
<pre> $(this).val(opts.startText);</pre>
<pre> } else if(input_focus){</pre>
<pre> $("li.as-selection-item", selections_holder).addClass("blur").removeClass("selected");</pre>
<pre> results_holder.hide();</pre>
<pre> }</pre>
<pre> }).dblclick(function(){</pre>
<pre> if (timeout){ clearTimeout(timeout); }</pre>
<pre> timeout = setTimeout(function(){ keyChange(); }, opts.keyDelay);</pre>
<pre> }).keydown(function(e) {</pre>
<p>This will pull up a list on <a target="_blank" class="zem_slink" title="Double-click" rel="wikipedia" href="http://en.wikipedia.org/wiki/Double-click">double click</a>.  You can change dlbclick to just click for a <a target="_blank" class="zem_slink" title="Point-and-click" rel="wikipedia" href="http://en.wikipedia.org/wiki/Point-and-click">single click</a> response instead.</p>
<p>~line 226 comment out the lines:</p>
<pre>if( lastKeyPressCode == 46 || (lastKeyPressCode &gt; 8 &amp;&amp; lastKeyPressCode &lt; 32) ){ return results_holder.hide(); }</pre>
<p>and</p>
<pre>if (string == prev) return;</pre>
<p>and</p>
<pre>if (string.length &gt;= opts.minChars) {</pre>
<p>and then on ~line 252 comment out</p>
<pre> } else {</pre>
<pre> selections_holder.removeClass("loading");</pre>
<pre> results_holder.hide();</pre>
<pre> }</pre>
<p>You will also want to turn the option &#8220;resultsHighlight&#8221; false, when you create the instance.</p>
<p>Now, on double click it will present a full list of options.</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a target="_blank" href="http://designshack.co.uk/articles/javascript/weekly-freebies-10-brilliant-jquery-plugins">Weekly Freebies: 10 Brilliant jQuery Plugins</a> (designshack.co.uk)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.devcurry.com/2010/11/jquery-144-fadetoggle-function.html">jQuery 1.4.4 fadeToggle() function</a> (devcurry.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://addyosmani.com/blog/jquery-roundrr/">jQuery Roundrr &#8211; How To Create Awesome Circular Image Galleries With jQuery &amp; CSS</a> (addyosmani.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.devcurry.com/2010/10/use-jquery-to-scroll-to-bottom-or-top.html">Use jQuery to Scroll to Bottom or Top of a Page</a> (devcurry.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://renesd.blogspot.com/2011/01/jquery-15-promises-better-future.html">JQuery 1.5 promises a better future.</a> (renesd.blogspot.com)</li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a target="_blank" class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/zemified_e.png?x-id=4e0fe6cc-4494-4d0c-a7ab-aa75277a202e" alt="Enhanced by Zemanta" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2011/01/tweaking-jquery-autosuggest/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Look for this.rand()</title>
		<link>http://www.thisrand.com/2010/01/new-look-for-this-rand</link>
		<comments>http://www.thisrand.com/2010/01/new-look-for-this-rand#comments</comments>
		<pubDate>Wed, 20 Jan 2010 00:20:42 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[computing]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://www.thisrand.com/?p=898</guid>
		<description><![CDATA[Well, it has been a while since I did a new look for our homepage, so here it is.  What do ya think?  This is a theme instead of the...]]></description>
			<content:encoded><![CDATA[<p>Well, it has been a while since I did a new look for our homepage, so here it is.  What do ya think?  This is a theme instead of the usual totally custom method I do, but I like it.  It is a very magazine type of look, but it gets a lot more content on the front page, and uses the sidebars better.  So it should drive a little more traffic, and be easier to use for those that do show up.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thisrand.com%2F2010%2F01%2Fnew-look-for-this-rand&amp;title=New%20Look%20for%20this.rand%28%29" id="wpa2a_2"><img src="http://www.thisrand.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2010/01/new-look-for-this-rand/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reliving Childhood</title>
		<link>http://www.thisrand.com/2008/07/reliving-childhood</link>
		<comments>http://www.thisrand.com/2008/07/reliving-childhood#comments</comments>
		<pubDate>Wed, 23 Jul 2008 20:03:58 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[downloads]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[computing]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[parenting]]></category>

		<guid isPermaLink="false">http://www.thisrand.com/?p=302</guid>
		<description><![CDATA[Due to my recent injury and subsequent free time, I am VERY bored. I work a lot, just because of nothing else to do at 3a, but still, that gets...]]></description>
			<content:encoded><![CDATA[<p>Due to my recent injury and subsequent free time, I am VERY bored.  I work a lot, just because of nothing else to do at 3a, but still, that gets old, especially since I don&#8217;t want to be a programmer/techie, I happen to love the team development aspects of management.</p>
<p><img title="red_storm_rising_03" src="http://www.thisrand.com/gallery2/main.php?g2_view=core.DownloadItem&amp;g2_itemId=3373&amp;g2_GALLERYSID=57a00b8b236d78a8718823824bcba929" alt="red_storm_rising_03" /></p>
<p>Well, as my team can attest, I have been pretty grouchy, mostly due to the snails pace at which my treatment is moving, but also the boredom.  My father, did suggest to try and play a game he and I loved from back in the day of when computers had <a target="_blank" href="http://www.pcguide.com/ref/case/switchTurbo-c.html" target="_blank">turbo buttons</a> and DOS was the bomb.  He was right (man that hurt to admit), and it was (is) a great game and a lot of fun.  So, off I ran to download <a target="_blank" href="https://www.thisrand.com/wp-content/uploads/2008/07/rsr.zip">Red Storm Rising</a>.  Since it is an old DOS game, I also had to get a DOS Emulator called <a target="_blank" href="https://www.thisrand.com/wp-content/uploads/2008/07/dosbox-installer.exe">DOS Box</a>.  You can download both from this post, as I don&#8217;t think it is fair for you to have to jump through a bunch of stupid hoops on some of those download sites just to get it, so feel free to download them here instead.  If you are also so inclined, it is a great <a target="_blank" href="http://search.barnesandnoble.com/Red-Storm-Rising/Tom-Clancy/e/9780425101070/?itm=1" target="_blank">book</a> too.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thisrand.com%2F2008%2F07%2Freliving-childhood&amp;title=Reliving%20Childhood" id="wpa2a_4"><img src="http://www.thisrand.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2008/07/reliving-childhood/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

