<?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: Using Lightbox with Apache directory listings as an image gallery</title>
	<atom:link href="http://www.actionshrimp.com/2009/03/using-lightbox-with-apache-directory-listings-as-an-image-gallery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.actionshrimp.com/2009/03/using-lightbox-with-apache-directory-listings-as-an-image-gallery/</link>
	<description>fun and geekery</description>
	<lastBuildDate>Tue, 20 Jul 2010 21:22:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Matt</title>
		<link>http://www.actionshrimp.com/2009/03/using-lightbox-with-apache-directory-listings-as-an-image-gallery/comment-page-1/#comment-9089</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Mon, 18 Jan 2010 12:59:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionshrimp.com/?p=79#comment-9089</guid>
		<description>Sure, I didn&#039;t think about formatting spaces nicely.  I guess it&#039;s easier just to read the innerHTML of the link instead of the href attribute.  As for a link to the image file, you can include html in the title attribute which will show up in the description.

I&#039;ve updated the post again to include these features.  Thanks for helping me make it better :)  Any more suggestions are welcome.</description>
		<content:encoded><![CDATA[<p>Sure, I didn&#8217;t think about formatting spaces nicely.  I guess it&#8217;s easier just to read the innerHTML of the link instead of the href attribute.  As for a link to the image file, you can include html in the title attribute which will show up in the description.</p>
<p>I&#8217;ve updated the post again to include these features.  Thanks for helping me make it better <img src='http://www.actionshrimp.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Any more suggestions are welcome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ps</title>
		<link>http://www.actionshrimp.com/2009/03/using-lightbox-with-apache-directory-listings-as-an-image-gallery/comment-page-1/#comment-9086</link>
		<dc:creator>ps</dc:creator>
		<pubDate>Sun, 17 Jan 2010 18:35:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionshrimp.com/?p=79#comment-9086</guid>
		<description>WOW!
Now of course, it would be even better, if the image name would display spaces correctly; and would be a clickable link to the actual image so one could download it..

But as a workaround I made the right-click working in the directory index, and thanks to you one knows already the name of the picture!

I don&#039;t want to waste your time anymore.
It works great, and you, Sir, made my day! Thanks!!!</description>
		<content:encoded><![CDATA[<p>WOW!<br />
Now of course, it would be even better, if the image name would display spaces correctly; and would be a clickable link to the actual image so one could download it..</p>
<p>But as a workaround I made the right-click working in the directory index, and thanks to you one knows already the name of the picture!</p>
<p>I don&#8217;t want to waste your time anymore.<br />
It works great, and you, Sir, made my day! Thanks!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.actionshrimp.com/2009/03/using-lightbox-with-apache-directory-listings-as-an-image-gallery/comment-page-1/#comment-9084</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Sun, 17 Jan 2010 15:56:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionshrimp.com/?p=79#comment-9084</guid>
		<description>Good idea.  You&#039;re on the right lines.  To get the filename you need to read the href attribute.  You should also make sure that people can&#039;t somehow embed code into your page using strange filenames; below I&#039;ve used the Prototype stripScripts() and stripTags() functions.  This is the line you are looking for:

elmt.setAttribute(&#039;title&#039;, elmt.readAttribute(&#039;href&#039;).stripScripts().stripTags() );

Put this in the last if statement.  Don&#039;t forget to add a semicolon to the end of the other line!  I&#039;ve updated the code in the post.

Hope that helps.
</description>
		<content:encoded><![CDATA[<p>Good idea.  You&#8217;re on the right lines.  To get the filename you need to read the href attribute.  You should also make sure that people can&#8217;t somehow embed code into your page using strange filenames; below I&#8217;ve used the Prototype stripScripts() and stripTags() functions.  This is the line you are looking for:</p>
<p>elmt.setAttribute(&#8216;title&#8217;, elmt.readAttribute(&#8216;href&#8217;).stripScripts().stripTags() );</p>
<p>Put this in the last if statement.  Don&#8217;t forget to add a semicolon to the end of the other line!  I&#8217;ve updated the code in the post.</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ps</title>
		<link>http://www.actionshrimp.com/2009/03/using-lightbox-with-apache-directory-listings-as-an-image-gallery/comment-page-1/#comment-9069</link>
		<dc:creator>ps</dc:creator>
		<pubDate>Sat, 16 Jan 2010 21:45:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionshrimp.com/?p=79#comment-9069</guid>
		<description>Hey thanks a lot for this tip. I use it now to spice up my fancy indexes!!

Still, I wonder if you could help me adding the filename to the image description.
I think it has something to be like:

elmt.setAttribute(&#039;title&#039;, ?????????????)

But how do I read out the name of the current image?
I&#039;m sorry, this is my first look at JavaScript, I don&#039;t know how to set this variable..

Thank YOU anyway!!!</description>
		<content:encoded><![CDATA[<p>Hey thanks a lot for this tip. I use it now to spice up my fancy indexes!!</p>
<p>Still, I wonder if you could help me adding the filename to the image description.<br />
I think it has something to be like:</p>
<p>elmt.setAttribute(&#8216;title&#8217;, ?????????????)</p>
<p>But how do I read out the name of the current image?<br />
I&#8217;m sorry, this is my first look at JavaScript, I don&#8217;t know how to set this variable..</p>
<p>Thank YOU anyway!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben lagrone</title>
		<link>http://www.actionshrimp.com/2009/03/using-lightbox-with-apache-directory-listings-as-an-image-gallery/comment-page-1/#comment-6066</link>
		<dc:creator>Ben lagrone</dc:creator>
		<pubDate>Tue, 12 May 2009 17:25:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionshrimp.com/?p=79#comment-6066</guid>
		<description>Thanks! I modified your instructions to upload only the images folder to the root!
I had spent my lunch trying to edit the .js ;(
You saved me countless hours of frustration.</description>
		<content:encoded><![CDATA[<p>Thanks! I modified your instructions to upload only the images folder to the root!<br />
I had spent my lunch trying to edit the .js ;(<br />
You saved me countless hours of frustration.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
