<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Revealing Details with jQuery</title>
	<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery</link>
	<description>Getting to know the library of choice for unobtrusive JavaScript</description>
	<pubDate>Fri, 29 Aug 2008 00:26:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: vFragoso</title>
		<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-47384</link>
		<dc:creator>vFragoso</dc:creator>
		<pubDate>Fri, 16 May 2008 20:25:04 +0000</pubDate>
		<guid>http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-47384</guid>
		<description>Just correcting an error, it should be:
&lt;code&gt;$('span.details').css({ display: "none", opacity: 0 });&lt;/code&gt;
In the first line. ;D</description>
		<content:encoded><![CDATA[<p>Just correcting an error, it should be:<br />
<code>$('span.details').css({ display: "none", opacity: 0 });</code><br />
In the first line. ;D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vFragoso</title>
		<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-47383</link>
		<dc:creator>vFragoso</dc:creator>
		<pubDate>Fri, 16 May 2008 20:23:21 +0000</pubDate>
		<guid>http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-47383</guid>
		<description>&lt;blockquote&gt;Hi Claire,
After revealing the details, I looked at the DOM for that span element using the IE Developer toolbar. One of the inline style properties that was applied to it was "zoom:1". Knowing that setting the zoom property is a common technique for forcing IE's hasLayout, I tried removing it to see what would happen. Voila&lt;/blockquote&gt;

I can't test right now, but I guess animate doesn't add the "zoom: 1". So, we can try this another way:

&lt;code&gt;$('span.details').css({ display: none; opacity: 0 });
$('a.read-more').click(function() {
&#160;&#160;$(this).hide();
&#160;&#160;$(this).next('span.details')
&#160;&#160;&#160;&#160;.css({ display: "inline" })
&#160;&#160;&#160;&#160;.animate({ opacity: 1 });
});&lt;/code&gt;

The display: inline, should deal with the line-break, and the animation with opacity gives the fade sensation. We could also add speed to our animation, or do any other effects with it.

This is all guessing, since I can't test this right now, but it shoudl work.</description>
		<content:encoded><![CDATA[<blockquote><p>Hi Claire,<br />
After revealing the details, I looked at the DOM for that span element using the IE Developer toolbar. One of the inline style properties that was applied to it was &#8220;zoom:1&#8243;. Knowing that setting the zoom property is a common technique for forcing IE&#8217;s hasLayout, I tried removing it to see what would happen. Voila</p></blockquote>
<p>I can&#8217;t test right now, but I guess animate doesn&#8217;t add the &#8220;zoom: 1&#8243;. So, we can try this another way:</p>
<p><code>$('span.details').css({ display: none; opacity: 0 });<br />
$('a.read-more').click(function() {<br />
&nbsp;&nbsp;$(this).hide();<br />
&nbsp;&nbsp;$(this).next('span.details')<br />
&nbsp;&nbsp;&nbsp;&nbsp;.css({ display: "inline" })<br />
&nbsp;&nbsp;&nbsp;&nbsp;.animate({ opacity: 1 });<br />
});</code></p>
<p>The display: inline, should deal with the line-break, and the animation with opacity gives the fade sensation. We could also add speed to our animation, or do any other effects with it.</p>
<p>This is all guessing, since I can&#8217;t test this right now, but it shoudl work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-47294</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Thu, 15 May 2008 15:27:51 +0000</pubDate>
		<guid>http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-47294</guid>
		<description>Hi Bryan, 

Thanks for the comments. Take a look at my &lt;a href="http://plugins.learningjquery.com/expander/" rel="nofollow"&gt;Expander Plugin&lt;/a&gt;, as it gives options for that sort of thing.</description>
		<content:encoded><![CDATA[<p>Hi Bryan, </p>
<p>Thanks for the comments. Take a look at my <a href="http://plugins.learningjquery.com/expander/" rel="nofollow">Expander Plugin</a>, as it gives options for that sort of thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan</title>
		<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-47221</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Thu, 15 May 2008 00:33:07 +0000</pubDate>
		<guid>http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-47221</guid>
		<description>Thanks a lot for the excellent tutorial!! I have one minor suggestion: It will be even more reader friendly if the code can append a &#8230; mark at the slice point to give the readers a visual hint that there are more text to come. 

With current implementation if the slice point is right after a period then readers might mistakenly think that's the end of the paragraph and skip the link.</description>
		<content:encoded><![CDATA[<p>Thanks a lot for the excellent tutorial!! I have one minor suggestion: It will be even more reader friendly if the code can append a &hellip; mark at the slice point to give the readers a visual hint that there are more text to come. </p>
<p>With current implementation if the slice point is right after a period then readers might mistakenly think that&#8217;s the end of the paragraph and skip the link.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-46791</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Sun, 11 May 2008 20:00:42 +0000</pubDate>
		<guid>http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-46791</guid>
		<description>Hi Ricardo,
Thanks a lot for letting me know about that. It was a problem with the syntax-highlighter plugin I've been using. I fixed the bug, so there should be no more shrinkage.</description>
		<content:encoded><![CDATA[<p>Hi Ricardo,<br />
Thanks a lot for letting me know about that. It was a problem with the syntax-highlighter plugin I&#8217;ve been using. I fixed the bug, so there should be no more shrinkage.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricardo</title>
		<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-46570</link>
		<dc:creator>Ricardo</dc:creator>
		<pubDate>Fri, 09 May 2008 14:59:45 +0000</pubDate>
		<guid>http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-46570</guid>
		<description>Your code box doesn't work in plain-text mode on Safari (shrinks)!</description>
		<content:encoded><![CDATA[<p>Your code box doesn&#8217;t work in plain-text mode on Safari (shrinks)!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aw</title>
		<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-29133</link>
		<dc:creator>aw</dc:creator>
		<pubDate>Fri, 01 Feb 2008 02:40:17 +0000</pubDate>
		<guid>http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-29133</guid>
		<description>But I don't think it works fine with Chinese Characters. I've done some test....

As a webdeveloper in China, to deal with Chinese characters is really involved. You need to do many actions as decoding, replacing, scanning.... :)

anyway, great post. Very detailed! Thanks from China !!</description>
		<content:encoded><![CDATA[<p>But I don&#8217;t think it works fine with Chinese Characters. I&#8217;ve done some test&#8230;.</p>
<p>As a webdeveloper in China, to deal with Chinese characters is really involved. You need to do many actions as decoding, replacing, scanning&#8230;. <img src='http://www.learningjquery.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>anyway, great post. Very detailed! Thanks from China !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-28737</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Tue, 29 Jan 2008 17:05:43 +0000</pubDate>
		<guid>http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-28737</guid>
		<description>Hi Rob,

I see your point about the definition list. Interestingly, though, the &lt;a href="http://www.w3.org/TR/html401/struct/lists.html#h-10.3" rel="nofollow"&gt;W3C HTML 4.01 spec&lt;/a&gt; seems to think it's okay to use a &lt;code&gt;&#60;DL&#62;&lt;/code&gt; for dialog(ue): "Another application of DL, for example, is for marking up dialogues, with each DT naming a speaker, and each DD containing his or her words."

But to answer your question &#8212; no, you wouldn't lose anything by using divs. The &lt;a href="http://plugins.learningjquery.com/expander/" rel="nofollow"&gt;Expander Plugin&lt;/a&gt; that I put together (still in "beta") will operate on any selector you give it.</description>
		<content:encoded><![CDATA[<p>Hi Rob,</p>
<p>I see your point about the definition list. Interestingly, though, the <a href="http://www.w3.org/TR/html401/struct/lists.html#h-10.3" rel="nofollow">W3C HTML 4.01 spec</a> seems to think it&#8217;s okay to use a <code>&lt;DL&gt;</code> for dialog(ue): &#8220;Another application of DL, for example, is for marking up dialogues, with each DT naming a speaker, and each DD containing his or her words.&#8221;</p>
<p>But to answer your question &mdash; no, you wouldn&#8217;t lose anything by using divs. The <a href="http://plugins.learningjquery.com/expander/" rel="nofollow">Expander Plugin</a> that I put together (still in &#8220;beta&#8221;) will operate on any selector you give it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-28731</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 29 Jan 2008 16:46:18 +0000</pubDate>
		<guid>http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-28731</guid>
		<description>Good stuff, although it might be rather better to not use a definition list for something that...isn't a definition list. 

Would you lose anything by using divs and spans? Then it should degrade gracefully.</description>
		<content:encoded><![CDATA[<p>Good stuff, although it might be rather better to not use a definition list for something that&#8230;isn&#8217;t a definition list. </p>
<p>Would you lose anything by using divs and spans? Then it should degrade gracefully.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Lenger</title>
		<link>http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-27859</link>
		<dc:creator>Scott Lenger</dc:creator>
		<pubDate>Mon, 21 Jan 2008 20:22:50 +0000</pubDate>
		<guid>http://www.learningjquery.com/2008/01/revealing-details-with-jquery#comment-27859</guid>
		<description>I recently made a similar (non-jQuery) script that toggles an items details.

See &lt;a href="http://www.ramseysubaru.net/" rel="nofollow"&gt;this example&lt;/a&gt; and click on the "we'll beat any..." graphic on the sidebar

Some of my newer projects make use of jQuery so I'll most likely be using the plugin on those sites to take advantage of the fancy fades and stuff.</description>
		<content:encoded><![CDATA[<p>I recently made a similar (non-jQuery) script that toggles an items details.</p>
<p>See <a href="http://www.ramseysubaru.net/" rel="nofollow">this example</a> and click on the &#8220;we&#8217;ll beat any&#8230;&#8221; graphic on the sidebar</p>
<p>Some of my newer projects make use of jQuery so I&#8217;ll most likely be using the plugin on those sites to take advantage of the fancy fades and stuff.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
