<?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: Filter Image View Using jQuery</title>
	<atom:link href="http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/</link>
	<description>Learn and share. The simplest harmony.</description>
	<lastBuildDate>Wed, 08 Feb 2012 20:28:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Alex</title>
		<link>http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/#comment-32876</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 05 Jan 2012 01:04:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.webstuffshare.com/?p=2068#comment-32876</guid>
		<description>Fantastic! Great tutorial, and great source!</description>
		<content:encoded><![CDATA[<p>Fantastic! Great tutorial, and great source!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PhotoBax: Photography Business Theme (Photography) : Quick Download</title>
		<link>http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/#comment-32451</link>
		<dc:creator>PhotoBax: Photography Business Theme (Photography) : Quick Download</dc:creator>
		<pubDate>Tue, 03 Jan 2012 02:57:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.webstuffshare.com/?p=2068#comment-32451</guid>
		<description>[...] http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/" rel="nofollow">http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PhotoBax: Photography Business Theme (Photography) &#187; Feedstube</title>
		<link>http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/#comment-32445</link>
		<dc:creator>PhotoBax: Photography Business Theme (Photography) &#187; Feedstube</dc:creator>
		<pubDate>Tue, 03 Jan 2012 02:49:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.webstuffshare.com/?p=2068#comment-32445</guid>
		<description>[...] http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/" rel="nofollow">http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Themeforest PhotoBax: Photography Business Theme (Photography)</title>
		<link>http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/#comment-32407</link>
		<dc:creator>Themeforest PhotoBax: Photography Business Theme (Photography)</dc:creator>
		<pubDate>Mon, 02 Jan 2012 23:13:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.webstuffshare.com/?p=2068#comment-32407</guid>
		<description>[...] http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/" rel="nofollow">http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PhotoBax: Photography Business Theme (Photography) &#124; Themes Tub</title>
		<link>http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/#comment-32406</link>
		<dc:creator>PhotoBax: Photography Business Theme (Photography) &#124; Themes Tub</dc:creator>
		<pubDate>Mon, 02 Jan 2012 22:59:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.webstuffshare.com/?p=2068#comment-32406</guid>
		<description>[...] http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/" rel="nofollow">http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Download PhotoBax: Photography Business Theme free &#8211; Daily Sharing Wordpress, Joomla, Magento free premium Template &#124; Daily Download Wordpress, Joomla, Magento Templates</title>
		<link>http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/#comment-32403</link>
		<dc:creator>Download PhotoBax: Photography Business Theme free &#8211; Daily Sharing Wordpress, Joomla, Magento free premium Template &#124; Daily Download Wordpress, Joomla, Magento Templates</dc:creator>
		<pubDate>Mon, 02 Jan 2012 22:49:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.webstuffshare.com/?p=2068#comment-32403</guid>
		<description>[...] http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/" rel="nofollow">http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kwanghee Chung</title>
		<link>http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/#comment-31325</link>
		<dc:creator>Kwanghee Chung</dc:creator>
		<pubDate>Tue, 27 Dec 2011 05:34:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.webstuffshare.com/?p=2068#comment-31325</guid>
		<description>Thanks for the great code!  It is really wonderful!

BTW, I am having one small problem with your code.  With the paging put in, after I jump to another page and then choose another category, it seems like the filter is only limited to the last shown items on the page.

Is there any way to reset items when the category is selected?

Thanks in advance!

- Kc</description>
		<content:encoded><![CDATA[<p>Thanks for the great code!  It is really wonderful!</p>
<p>BTW, I am having one small problem with your code.  With the paging put in, after I jump to another page and then choose another category, it seems like the filter is only limited to the last shown items on the page.</p>
<p>Is there any way to reset items when the category is selected?</p>
<p>Thanks in advance!</p>
<p>- Kc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane Andreasen</title>
		<link>http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/#comment-30193</link>
		<dc:creator>Shane Andreasen</dc:creator>
		<pubDate>Tue, 20 Dec 2011 00:18:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.webstuffshare.com/?p=2068#comment-30193</guid>
		<description>Thanks for the great script! Very helpful indeed.

I notice alot of people are getting hung up on the fact that when you click the filters in the gallery it takes you to the top of the page. This is simply because the links the filters are wrapped in all point to  &lt;code&gt;a href=&quot;#&quot;&lt;/code&gt;. href=&quot;#&quot; is just a placeholder, which points to an id (attributed with the &quot;#&quot; pound symbol) that doesn&#039;t exist, so it just takes you back to the top of the html document. You can do a couple of things to resolve this easily:

&lt;em&gt;1. Add an anchor (with nothing inside of it, so it won&#039;t take up any space on the page) to your page&lt;/em&gt; at the top of your gallery so it will point users there when they click the filters. ie. create the anchor with the &#039;name&#039; or &#039;id&#039; attribute &lt;code&gt; a name=&quot;myGalleryTop&quot;&gt;&lt;/a &lt;/code&gt; (hint, Name and ID must be the same if you use both, but both are not required) and then have all the links which wrap the filters point to &lt;code&gt; a href=&quot;#myGalleryTop&quot;&lt;/code&gt;

&lt;em&gt;2. Remove the href attribute&lt;/em&gt; from the anchors wrapping the filters. When clicked, they will still filter your gallery by running the javascript attached, however they won&#039;t take you anywhere within your html document. The caveat here is that browsers will no longer read the anchors as links, just plain text, so it won&#039;t show a &quot;pointer cursor&quot; when a user mouses over it like a normal text link. To fix this, just use CSS to style the anchors wrapping the filters. ie. &lt;code&gt; #myGalleryTop { cursor: pointer; }&lt;/code&gt;

There&#039;s one other issue I noticed which seems common in this forum, and I also ran into myself - It can be a little troublesome clicking on the items in the gallery once they&#039;ve been filtered. The first gallery item is hard to click on and sometimes you can still click links to gallery items which should not appear as a part of the filter. The reason for this is because the javascript is setup to make the filtered gallery results &lt;em&gt;hidden&lt;/em&gt; (using the 0 opacity trick), but still displayed and taking up space. This can cause errors when trying to click the correct items in the gallery after filtering the results. There&#039;s a simple fix for this as well, you just need to change the javascript so that the items which are filtered out change their opacity value to &lt;em&gt;&#039;hide&#039;&lt;/em&gt; instead of 0. 

Replace:
&lt;code&gt;$(&#039;.item li[rel!=&#039;+thisItem+&#039;]&#039;).stop()
		.animate({&#039;width&#039; : 0, 
		&#039;opacity&#039; : 0,
 &lt;/code&gt;
With:
&lt;code&gt;$(&#039;.item li[rel!=&#039;+thisItem+&#039;]&#039;).stop()
		.animate({&#039;width&#039; : 0, 
		&#039;opacity&#039; : &#039;hide&#039;,
 &lt;/code&gt;

and you shouldn&#039;t have any more issues clicking your gallery items. Good luck all and thanks again to Hidayat for sharing!</description>
		<content:encoded><![CDATA[<p>Thanks for the great script! Very helpful indeed.</p>
<p>I notice alot of people are getting hung up on the fact that when you click the filters in the gallery it takes you to the top of the page. This is simply because the links the filters are wrapped in all point to  <code>a href="#"</code>. href=&#8221;#&#8221; is just a placeholder, which points to an id (attributed with the &#8220;#&#8221; pound symbol) that doesn&#8217;t exist, so it just takes you back to the top of the html document. You can do a couple of things to resolve this easily:</p>
<p><em>1. Add an anchor (with nothing inside of it, so it won&#8217;t take up any space on the page) to your page</em> at the top of your gallery so it will point users there when they click the filters. ie. create the anchor with the &#8216;name&#8217; or &#8216;id&#8217; attribute <code> a name="myGalleryTop"&gt;&lt;/a </code> (hint, Name and ID must be the same if you use both, but both are not required) and then have all the links which wrap the filters point to <code> a href="#myGalleryTop"</code></p>
<p><em>2. Remove the href attribute</em> from the anchors wrapping the filters. When clicked, they will still filter your gallery by running the javascript attached, however they won&#8217;t take you anywhere within your html document. The caveat here is that browsers will no longer read the anchors as links, just plain text, so it won&#8217;t show a &#8220;pointer cursor&#8221; when a user mouses over it like a normal text link. To fix this, just use CSS to style the anchors wrapping the filters. ie. <code> #myGalleryTop { cursor: pointer; }</code></p>
<p>There&#8217;s one other issue I noticed which seems common in this forum, and I also ran into myself &#8211; It can be a little troublesome clicking on the items in the gallery once they&#8217;ve been filtered. The first gallery item is hard to click on and sometimes you can still click links to gallery items which should not appear as a part of the filter. The reason for this is because the javascript is setup to make the filtered gallery results <em>hidden</em> (using the 0 opacity trick), but still displayed and taking up space. This can cause errors when trying to click the correct items in the gallery after filtering the results. There&#8217;s a simple fix for this as well, you just need to change the javascript so that the items which are filtered out change their opacity value to <em>&#8216;hide&#8217;</em> instead of 0. </p>
<p>Replace:<br />
<code>$('.item li[rel!='+thisItem+']').stop()<br />
		.animate({'width' : 0,<br />
		'opacity' : 0,<br />
 </code><br />
With:<br />
<code>$('.item li[rel!='+thisItem+']').stop()<br />
		.animate({'width' : 0,<br />
		'opacity' : 'hide',<br />
 </code></p>
<p>and you shouldn&#8217;t have any more issues clicking your gallery items. Good luck all and thanks again to Hidayat for sharing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane Andreasen</title>
		<link>http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/#comment-30191</link>
		<dc:creator>Shane Andreasen</dc:creator>
		<pubDate>Tue, 20 Dec 2011 00:01:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.webstuffshare.com/?p=2068#comment-30191</guid>
		<description>You get scrolled back to the top of the page because the anchors for the filters all point to &lt;code&gt;a href=&quot;#&quot;&lt;/code&gt;.

You can create an anchor with a unique id (ie. &quot;galleryTop&quot;) at the top of your gallery (wherever you have it placed on your page) and change the filters links to point to it &lt;code&gt; a href=&quot;#galleryTop&quot;&lt;/code&gt;

Or, you can take out the &lt;code&gt;href=&quot;#&quot;&lt;/code&gt; altogether and the filters will still work with the javascript. The only catch here is that it won&#039;t appear visually as a link to the user (ie. the Cursor doesn&#039;t change because it no longer thinks the anchor is a link, it just recognizes it as text). This can be easily fixed by adding CSS style to the div containing the filters - &lt;code&gt;cursor: pointer;&lt;/code&gt;.

Good luck!</description>
		<content:encoded><![CDATA[<p>You get scrolled back to the top of the page because the anchors for the filters all point to <code>a href="#"</code>.</p>
<p>You can create an anchor with a unique id (ie. &#8220;galleryTop&#8221;) at the top of your gallery (wherever you have it placed on your page) and change the filters links to point to it <code> a href="#galleryTop"</code></p>
<p>Or, you can take out the <code>href="#"</code> altogether and the filters will still work with the javascript. The only catch here is that it won&#8217;t appear visually as a link to the user (ie. the Cursor doesn&#8217;t change because it no longer thinks the anchor is a link, it just recognizes it as text). This can be easily fixed by adding CSS style to the div containing the filters &#8211; <code>cursor: pointer;</code>.</p>
<p>Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.webstuffshare.com/2010/05/filter-image-view-using-jquery/#comment-29662</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Fri, 16 Dec 2011 15:11:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.webstuffshare.com/?p=2068#comment-29662</guid>
		<description>This saved my life, thanks dude!</description>
		<content:encoded><![CDATA[<p>This saved my life, thanks dude!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: www.webstuffshare.com @ 2012-02-09 20:05:41 -->
