<?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: Revealing Details with jQuery</title>
	<atom:link href="http://www.learningjquery.com/2008/01/revealing-details-with-jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery</link>
	<description>Tips, techniques, and tutorials for the jQuery JavaScript library</description>
	<lastBuildDate>Wed, 08 Feb 2012 13:50:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Randy</title>
		<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery/comment-page-1#comment-84716</link>
		<dc:creator>Randy</dc:creator>
		<pubDate>Sat, 03 Dec 2011 05:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-84716</guid>
		<description>A quick and dirty collapsing addition:

1. Change line #14 from
&lt;code&gt;&#039;&lt;/span&gt;&#039;&lt;/code&gt;
to
&lt;code&gt;&#039;&lt;a href=&quot;#&quot; class=&quot;read-less&quot;&gt; read less...&lt;/a&gt;&lt;/span&gt;&#039;&lt;/code&gt;

2. Insert before line #28 another click handler for the collapsing link:

&lt;pre&gt;&lt;code&gt;  $(&#039;a.read-less&#039;).click(function() {
            $(this).parent().fadeOut().prev(&#039;a.read-more&#039;).show();
            return false;
        });
&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>A quick and dirty collapsing addition:</p>
<p>1. Change line #14 from<br />
<code>'&lt;/span&gt;'</code><br />
to<br />
<code>'&lt;a href="#" class="read-less"&gt; read less...&lt;/a&gt;&lt;/span&gt;'</code></p>
<p>2. Insert before line #28 another click handler for the collapsing link:</p>
<pre><code>  $('a.read-less').click(function() {
            $(this).parent().fadeOut().prev('a.read-more').show();
            return false;
        });
</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery/comment-page-1#comment-81756</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Fri, 20 Aug 2010 23:23:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-81756</guid>
		<description>Hi Mike,
One of the drawbacks of the approach I took here is that it doesn&#039;t work across multiple block-level elements. I think that&#039;s the situation you&#039;re finding yourself in here.</description>
		<content:encoded><![CDATA[<p>Hi Mike,<br />
One of the drawbacks of the approach I took here is that it doesn&#8217;t work across multiple block-level elements. I think that&#8217;s the situation you&#8217;re finding yourself in here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery/comment-page-1#comment-81753</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 20 Aug 2010 02:54:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-81753</guid>
		<description>Could this be applied dynamically to a page that is getting it&#039;s content from a database? My previous attempts would break the html formatting causing all types of errors.

I wanted to limit the text shown to 150 characters so I cut off all text past that point. 
The problem is that image links or other formatting might fall in the 150-151 character mark. 
&lt;img src=&quot;images/smi   This could be a result and really mess things up. 

I appreciate your response! Other than that use, this makes for an awesome FAQ script!</description>
		<content:encoded><![CDATA[<p>Could this be applied dynamically to a page that is getting it&#8217;s content from a database? My previous attempts would break the html formatting causing all types of errors.</p>
<p>I wanted to limit the text shown to 150 characters so I cut off all text past that point.<br />
The problem is that image links or other formatting might fall in the 150-151 character mark.<br />
&lt;img src=&#8221;images/smi   This could be a result and really mess things up. </p>
<p>I appreciate your response! Other than that use, this makes for an awesome FAQ script!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery/comment-page-1#comment-81545</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Sun, 08 Aug 2010 20:18:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-81545</guid>
		<description>Ah. I&#039;ve never been entirely confident in those stats, since they&#039;re based primarily on one site&#039;s traffic logs. Also, the most recent  JavaScript stats are from January 2008, which seem quite old. I wonder if there is anything more recent and reliable out there.</description>
		<content:encoded><![CDATA[<p>Ah. I&#8217;ve never been entirely confident in those stats, since they&#8217;re based primarily on one site&#8217;s traffic logs. Also, the most recent  JavaScript stats are from January 2008, which seem quite old. I wonder if there is anything more recent and reliable out there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TimJ</title>
		<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery/comment-page-1#comment-81541</link>
		<dc:creator>TimJ</dc:creator>
		<pubDate>Sun, 08 Aug 2010 17:01:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-81541</guid>
		<description>Thanks for the tip!  Javascript use can be found here:

http://www.w3schools.com/browsers/browsers_stats.asp</description>
		<content:encoded><![CDATA[<p>Thanks for the tip!  Javascript use can be found here:</p>
<p><a href="http://www.w3schools.com/browsers/browsers_stats.asp" rel="nofollow">http://www.w3schools.com/browsers/browsers_stats.asp</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery/comment-page-1#comment-81538</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Sun, 08 Aug 2010 14:55:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-81538</guid>
		<description>That&#039;s an interesting question. My thought was that displaying all the content on the page would be a fine method of graceful degradation. The important thing here is that those without JavaScript have access to all of the content.

I&#039;d approach this differently if I wanted to provide a link to another file for non-JS users. I&#039;d probably just put the link where I wanted it to be and then remove it with JS and let the plugin take over. I&#039;d have to know exactly where I wanted the &quot;details&quot; to start and wrap them up in a span that is hidden with CSS unless JS is enabled. But if I&#039;m doing all this stuff manually, it sort of obviates the need for the plugin.

By the way, I&#039;m curious about your statement about &quot; 5-8% who have javascript turned off.&quot; Do you have a reference/URL for that figure? I&#039;m always very interested in seeing such data and seeing how it is collected. 

Thanks!</description>
		<content:encoded><![CDATA[<p>That&#8217;s an interesting question. My thought was that displaying all the content on the page would be a fine method of graceful degradation. The important thing here is that those without JavaScript have access to all of the content.</p>
<p>I&#8217;d approach this differently if I wanted to provide a link to another file for non-JS users. I&#8217;d probably just put the link where I wanted it to be and then remove it with JS and let the plugin take over. I&#8217;d have to know exactly where I wanted the &#8220;details&#8221; to start and wrap them up in a span that is hidden with CSS unless JS is enabled. But if I&#8217;m doing all this stuff manually, it sort of obviates the need for the plugin.</p>
<p>By the way, I&#8217;m curious about your statement about &#8221; 5-8% who have javascript turned off.&#8221; Do you have a reference/URL for that figure? I&#8217;m always very interested in seeing such data and seeing how it is collected. </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TimJ</title>
		<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery/comment-page-1#comment-81523</link>
		<dc:creator>TimJ</dc:creator>
		<pubDate>Sun, 08 Aug 2010 04:21:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-81523</guid>
		<description>A simple and elegant plug-in.

How might one construct this so it degrades gracefully in the browsers of that 5-8% who have javascript turned off?   I notice when javascript is turned off, the whole of the text block is revealed.  Ideally, for those users I&#039;d rather a plain &lt;noscript&gt; html link to the complete text.  Suggestions on how this might gracefully be achieved?</description>
		<content:encoded><![CDATA[<p>A simple and elegant plug-in.</p>
<p>How might one construct this so it degrades gracefully in the browsers of that 5-8% who have javascript turned off?   I notice when javascript is turned off, the whole of the text block is revealed.  Ideally, for those users I&#8217;d rather a plain &lt;noscript&gt; html link to the complete text.  Suggestions on how this might gracefully be achieved?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery/comment-page-1#comment-79716</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Tue, 16 Feb 2010 14:01:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-79716</guid>
		<description>Hi Sven,
If you&#039;re referring to the Expander plugin, then you can use the &lt;code&gt;expandSpeed&lt;/code&gt; option. For example: &lt;code&gt;$(someSelector).expander({expandSpeed: 500})&lt;/code&gt;. If you&#039;re referring to the code in this entry, just add a speed to  the &lt;code&gt;.fadeIn()&lt;/code&gt; method, either the number of milliseconds or &#039;fast&#039; or &#039;slow&#039;. (See the &lt;a href=&quot;http://api.jquery.com/fadein/&quot; rel=&quot;nofollow&quot;&gt;API reference&lt;/a&gt; for more information.)</description>
		<content:encoded><![CDATA[<p>Hi Sven,<br />
If you&#8217;re referring to the Expander plugin, then you can use the <code>expandSpeed</code> option. For example: <code>$(someSelector).expander({expandSpeed: 500})</code>. If you&#8217;re referring to the code in this entry, just add a speed to  the <code>.fadeIn()</code> method, either the number of milliseconds or &#8216;fast&#8217; or &#8216;slow&#8217;. (See the <a href="http://api.jquery.com/fadein/" rel="nofollow">API reference</a> for more information.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sven Korteland</title>
		<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery/comment-page-1#comment-79715</link>
		<dc:creator>Sven Korteland</dc:creator>
		<pubDate>Tue, 16 Feb 2010 12:45:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-79715</guid>
		<description>Nice plugin exactly what i need. Is it possible to control the speed of opening and closing. Now it opens to fast.</description>
		<content:encoded><![CDATA[<p>Nice plugin exactly what i need. Is it possible to control the speed of opening and closing. Now it opens to fast.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Quick Tip: Dynamically add an icon for external links &#187; Learning jQuery - Tips, Techniques, Tutorials</title>
		<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery/comment-page-1#comment-78266</link>
		<dc:creator>Quick Tip: Dynamically add an icon for external links &#187; Learning jQuery - Tips, Techniques, Tutorials</dc:creator>
		<pubDate>Mon, 24 Aug 2009 16:26:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-78266</guid>
		<description>[...] Revealing Details with jQuery [...]</description>
		<content:encoded><![CDATA[<p>[...] Revealing Details with jQuery [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced (User agent is rejected)
Database Caching 10/24 queries in 0.007 seconds using disk: basic
Object Caching 375/387 objects using disk: basic
Content Delivery Network via learningjquery.kswedberg.netdna-cdn.com

Served from: www.learningjquery.com @ 2012-02-08 17:18:30 -->
