<?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>madnet.ch - Rolf Klemenz &#187; slimbox</title>
	<atom:link href="http://www.madnet.ch/tag/slimbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.madnet.ch</link>
	<description>because technology matters</description>
	<lastBuildDate>Thu, 06 Oct 2011 19:02:34 +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>Gallery Included</title>
		<link>http://www.madnet.ch/2009/02/28/gallery-included/</link>
		<comments>http://www.madnet.ch/2009/02/28/gallery-included/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 08:34:49 +0000</pubDate>
		<dc:creator>Rolf</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[livequery]]></category>
		<category><![CDATA[MadNet]]></category>
		<category><![CDATA[slimbox]]></category>

		<guid isPermaLink="false">http://www.madnet.ch/2009/02/28/gallery-included/</guid>
		<description><![CDATA[I also included a small gallery to the site. The gallery content comes from my images server through a php script and the presentation is done using jQuery with livequery and slimbox2. I had to use livequery because I wanted &#8230; <a href="http://www.madnet.ch/2009/02/28/gallery-included/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I also included a small gallery to the site. The gallery content comes from my images server through a php script and the presentation is done using jQuery with livequery and slimbox2.</p>
<p>I had to use livequery because I wanted to add a lightbox effect to the asynchronously loaded DOM for the gallery content. That&#8217;s a common problem when dealing with ajax.</p>
<p>This is how it looks like now:</p>
<pre>
<code>&lt;head&gt;
    &lt;script type="text/javascript" src="http://js.madnet.ch/jquery-min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="http://js.madnet.ch/madnet-common.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="http://js.madnet.ch/madnet-wordpress.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="http://js.madnet.ch/jquery.livequery.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="http://js.madnet.ch/slimbox/js/slimbox2.js"&gt;&lt;/script&gt;
&lt;/head&gt;
...
jQuery( function() {
    $("#g .gallery").livequery(function() {
        $(this).children("a").slimbox();
    });
    $("#g .galleryContainer").livequery(function() {
        $(this).click(function() {
            $(this).children(".gallery").slideToggle("slow");
        });
        $(this).children(".gallery").slideUp("slow");
        $(this).children("h3").hover(function() {
            $(this).fadeOut(100);$(this).fadeIn(500);
        });
    });
    $("#g").load("/galleryImages/AllImages.php");
});</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.madnet.ch/2009/02/28/gallery-included/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

