<?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>Code That Matters &#187; bjorn</title>
	<atom:link href="http://www.codethatmatters.com/author/bjorn/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codethatmatters.com</link>
	<description>Pylons, rails, jQuery and other stuff that matters</description>
	<lastBuildDate>Sat, 16 Jul 2011 10:57:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>DiaProjector &#8211; a jQuery diapositive slideshow plugin</title>
		<link>http://www.codethatmatters.com/2010/09/diaprojector-a-jquery-diapositive-slideshow-plugin/</link>
		<comments>http://www.codethatmatters.com/2010/09/diaprojector-a-jquery-diapositive-slideshow-plugin/#comments</comments>
		<pubDate>Wed, 15 Sep 2010 11:40:20 +0000</pubDate>
		<dc:creator>bjorn</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[diaprojector]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://www.codethatmatters.com/?p=207</guid>
		<description><![CDATA[UPDATE: Version 1.1 available! Sept 21, 2010
- Overlay prev/next buttons available. This option, &#8220;overlay&#8221;, is true by default.
- Some small bugfixes
- Clearer left and right keybuttons in the navigation box
Lightboxes, Liteboxes, Greyboxes and Fancyboxes, we have seen them all by now and they all work kind of well. However, they are not very original and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE: Version 1.1 available! </strong><em>Sept 21, 2010</em><br />
- Overlay prev/next buttons available. This option, &#8220;overlay&#8221;, is true by default.<br />
- Some small bugfixes<br />
- Clearer left and right keybuttons in the navigation box</p>
<p>Lightboxes, Liteboxes, Greyboxes and Fancyboxes, we have seen them all by now and they all work kind of well. However, they are not very original and work in pretty much the same way. If you want something new and original, yet still oldschool and simple, say hello to the latest addition to the slideshow plugins &#8211; DiaProjector.</p>
<p>Remember watching photos with the help of <a href="http://ss11i01.stream.ip-only.net/images/blog/images/entries/43/45/39/2862/36f53b65b0c392a9" target="_blank">these slides</a>? All you needed was a screen, a diaprojector machine and a ton of slides and you were in for hours of fun with your friends or family. This neat jQuery plugin is almost as fun! At least it&#8217;s trying to be, simulating the very same old fuzzy diaprojector feeling. Try it out here on our site and then download it to use on your own site. Please drop a line here when you have it running or have some questions/comments <img src='http://www.codethatmatters.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: center;"><img class="size-full wp-image-210 aligncenter" title="DiaProjector Jquery Plugin" usemap="#imagemap" src="http://www.codethatmatters.com/wp-content/uploads/2010/08/diaprojectorplugin.jpg" alt="DiaProjector - world's only diapositive slideshow" width="490" height="500" /></p>
<map name="imagemap">
<area title="Download DiaProjector" shape="rect" coords="238,254,410,303" href="http://source.codethatmatters.com/DiaProjector/diaprojector.zip" />
<area title="Watch it in action!" shape="rect" coords="81,254,226,303" href="http://source.codethatmatters.com/DiaProjector/index.html" target="_blank" /> </map>
<p>The plugin should work in Internet Explorer 7+, Firefox, Opera and Safari.</p>
<p>Sites that are using the script at the moment are:<br />
- <a href="http://www.monkeyagency.com/portfolio/" target="_blank">Monkey Agency</a></p>
<p> <img src='http://www.codethatmatters.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.codethatmatters.com/2010/09/diaprojector-a-jquery-diapositive-slideshow-plugin/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Jquery image selector Facebook style</title>
		<link>http://www.codethatmatters.com/2010/02/jquery-image-selector-facebook-style/</link>
		<comments>http://www.codethatmatters.com/2010/02/jquery-image-selector-facebook-style/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 15:34:49 +0000</pubDate>
		<dc:creator>bjorn</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.codethatmatters.com/?p=179</guid>
		<description><![CDATA[In late 2008, the guys over at emposha wrote an excellent image selector for jQuery. It works very similar to the friend chooser on Facebook. However, I wanted a way to limit the selections to only one friend/picture. With the current code there is no such possibility. So instead of complaining, I simply rewrote some [...]]]></description>
			<content:encoded><![CDATA[<p>In late 2008, the guys over at <a href="http://www.emposha.com/">emposha</a> wrote an excellent <a href="http://www.emposha.com/javascript/fcbklistselection-like-facebook-friends-selector.html">image selector for jQuery</a>. It works very similar to the friend chooser on <a href="http://www.facebook.com">Facebook</a>. However, I wanted a way to limit the selections to only one friend/picture. With the current code there is no such possibility. So instead of complaining, I simply rewrote some lines in the script. If you want to do the same thing, this is how you do it.</p>
<p>Row 80-84 in &#8220;fcbklistselection.js&#8221; looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">obj.<span class="me1">click</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
        addToSelected<span class="br0">&#40;</span>obj<span class="br0">&#41;</span><span class="sy0">;</span>                            
        obj.<span class="me1">toggleClass</span><span class="br0">&#40;</span><span class="st0">&quot;itemselected&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
        obj.<span class="me1">parents</span><span class="br0">&#40;</span><span class="st0">&quot;li&quot;</span><span class="br0">&#41;</span>.<span class="me1">toggleClass</span><span class="br0">&#40;</span><span class="st0">&quot;liselected&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>                     
<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div>

<p>Replace these lines with the following:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">obj.<span class="me1">click</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
&nbsp;
       <span class="co1">//check if this is already selected. in that case it should be deselected</span>
       deselect_this <span class="sy0">=</span> <span class="kw2">false</span><span class="sy0">;</span>
       <span class="kw1">if</span><span class="br0">&#40;</span>parseInt<span class="br0">&#40;</span>obj.<span class="me1">attr</span><span class="br0">&#40;</span><span class="st0">&quot;class&quot;</span><span class="br0">&#41;</span>.<span class="me1">indexOf</span><span class="br0">&#40;</span><span class="st0">&quot;selected&quot;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="sy0">&gt;</span> <span class="sy0">-</span><span class="nu0">1</span><span class="br0">&#41;</span> deselect_this <span class="sy0">=</span> <span class="kw2">true</span><span class="sy0">;</span>
&nbsp;
       <span class="co1">//deselecting all items</span>
       $<span class="br0">&#40;</span><span class="st0">&quot;li .fcbklist_item&quot;</span><span class="br0">&#41;</span>.<span class="me1">each</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span>x<span class="sy0">,</span> obj2<span class="br0">&#41;</span> <span class="br0">&#123;</span>
              obj2 <span class="sy0">=</span> $<span class="br0">&#40;</span>obj2<span class="br0">&#41;</span><span class="sy0">;</span>
              obj2.<span class="me1">removeClass</span><span class="br0">&#40;</span><span class="st0">&quot;itemselected&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span> 
              obj2.<span class="me1">parents</span><span class="br0">&#40;</span><span class="st0">&quot;li&quot;</span><span class="br0">&#41;</span>.<span class="me1">removeClass</span><span class="br0">&#40;</span><span class="st0">&quot;liselected&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
              obj2.<span class="me1">parents</span><span class="br0">&#40;</span><span class="st0">&quot;li&quot;</span><span class="br0">&#41;</span>.<span class="me1">removeAttr</span><span class="br0">&#40;</span><span class="st0">&quot;addedid&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
              removeValue<span class="br0">&#40;</span>obj2<span class="br0">&#41;</span><span class="sy0">;</span>
              hiddenCheck<span class="br0">&#40;</span>obj2<span class="br0">&#41;</span><span class="sy0">;</span>
       <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
       <span class="co1">//if the clicked item should be deselected, do so</span>
       <span class="kw1">if</span><span class="br0">&#40;</span><span class="sy0">!</span>deselect_this<span class="br0">&#41;</span>
       <span class="br0">&#123;</span>
              addToSelected<span class="br0">&#40;</span>obj<span class="br0">&#41;</span><span class="sy0">;</span>                            
              obj.<span class="me1">toggleClass</span><span class="br0">&#40;</span><span class="st0">&quot;itemselected&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
              obj.<span class="me1">parents</span><span class="br0">&#40;</span><span class="st0">&quot;li&quot;</span><span class="br0">&#41;</span>.<span class="me1">toggleClass</span><span class="br0">&#40;</span><span class="st0">&quot;liselected&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
       <span class="br0">&#125;</span>
<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div>

<p>To get rid of the selected/unselected, simply add &#8220;display: none;&#8221; below &#8220;#filters .selections&#8221; in the css file (fcbklistselection.css). Enjoy!</p>
<p>Original demo: <a href="http://www.emposha.com/demo/fcbklistselection/">http://www.emposha.com/demo/fcbklistselection/</a><br />
Demo with our solution: <a href="http://www.codethatmatters.com/source/fcbkListSelection/">http://www.codethatmatters.com/source/fcbkListSelection/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codethatmatters.com/2010/02/jquery-image-selector-facebook-style/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

