<?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: Animated Scrolling in jQuery</title>
	<atom:link href="http://robinadr.com/2007/10/animated_scrolling_in_jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://robinadr.com/2007/10/animated_scrolling_in_jquery</link>
	<description>big pimpin&#039;</description>
	<lastBuildDate>Wed, 18 Aug 2010 06:30:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://robinadr.com/2007/10/animated_scrolling_in_jquery/comment-page-1#comment-141</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Sun, 14 Oct 2007 22:52:40 +0000</pubDate>
		<guid isPermaLink="false">http://robinadr.com/2007/10/animated_scrolling_in_jquery#comment-141</guid>
		<description>&lt;p&gt;Heh, no problem, Robin. I was wondering why the comment didn&#039;t show up, though. Cheers.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Heh, no problem, Robin. I was wondering why the comment didn&#8217;t show up, though. Cheers.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Robin</title>
		<link>http://robinadr.com/2007/10/animated_scrolling_in_jquery/comment-page-1#comment-136</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Sun, 14 Oct 2007 17:25:47 +0000</pubDate>
		<guid isPermaLink="false">http://robinadr.com/2007/10/animated_scrolling_in_jquery#comment-136</guid>
		<description>&lt;p&gt;Oh, and sorry about your comment getting marked as spam, Akismet seems to be a bit off lately.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Oh, and sorry about your comment getting marked as spam, Akismet seems to be a bit off lately.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Robin</title>
		<link>http://robinadr.com/2007/10/animated_scrolling_in_jquery/comment-page-1#comment-135</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Sun, 14 Oct 2007 17:25:13 +0000</pubDate>
		<guid isPermaLink="false">http://robinadr.com/2007/10/animated_scrolling_in_jquery#comment-135</guid>
		<description>&lt;p&gt;Interesting, because with the original code my external anchors wouldn&#039;t work -- nothing happened when I clicked them, but once I changed the selector to &lt;code&gt;[href^=#]&lt;/code&gt; it worked fine.&lt;/p&gt;

&lt;p&gt;Probably my bad copying ;).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Interesting, because with the original code my external anchors wouldn&#8217;t work &#8212; nothing happened when I clicked them, but once I changed the selector to <code>[href^=#]</code> it worked fine.</p>

<p>Probably my bad copying ;).</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://robinadr.com/2007/10/animated_scrolling_in_jquery/comment-page-1#comment-132</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Sun, 14 Oct 2007 12:39:51 +0000</pubDate>
		<guid isPermaLink="false">http://robinadr.com/2007/10/animated_scrolling_in_jquery#comment-132</guid>
		<description>&lt;p&gt;Hi there,&lt;/p&gt;

&lt;p&gt;Thanks for linking to my entry! Actually, though, I put that selector -- $(&#039;a[href*=#]&#039;) -- in there intentionally, to account for all possible ways that someone could link to an anchor on the same page. The next line in my script limits it to anchors on the &lt;em&gt;same&lt;/em&gt; page with this &lt;code&gt;if&lt;/code&gt; condition:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;if (location.pathname.replace(/^&#092;//,&#039;&#039;) == this.pathname.replace(/^&#092;//,&#039;&#039;)
    &amp;&amp; location.hostname == this.hostname)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Of course, if you know that you&#039;ll always begin your same-page &lt;code&gt;href&lt;/code&gt;s with the hash, then your method is preferable, and that next condition is unnecessary. But I felt I should make mine as generic as possible to account for an weirdness that might result from a wysywig editor in a CMS or an inexperienced content person.&lt;/p&gt;

&lt;p&gt;The script does have another problem, though, which I&#039;ll be addressing in a follow-up entry soon.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi there,</p>

<p>Thanks for linking to my entry! Actually, though, I put that selector &#8212; $(&#8216;a[href*=#]&#8217;) &#8212; in there intentionally, to account for all possible ways that someone could link to an anchor on the same page. The next line in my script limits it to anchors on the <em>same</em> page with this <code>if</code> condition:</p>

<p><code>if (location.pathname.replace(/^&#92;//,'') == this.pathname.replace(/^&#92;//,'')
    &amp;&amp; location.hostname == this.hostname)</code></p>

<p>Of course, if you know that you&#8217;ll always begin your same-page <code>href</code>s with the hash, then your method is preferable, and that next condition is unnecessary. But I felt I should make mine as generic as possible to account for an weirdness that might result from a wysywig editor in a CMS or an inexperienced content person.</p>

<p>The script does have another problem, though, which I&#8217;ll be addressing in a follow-up entry soon.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://robinadr.com/2007/10/animated_scrolling_in_jquery/comment-page-1#comment-130</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Sun, 14 Oct 2007 05:39:48 +0000</pubDate>
		<guid isPermaLink="false">http://robinadr.com/2007/10/animated_scrolling_in_jquery#comment-130</guid>
		<description>&lt;p&gt;That&#039;s pretty sweet. The thing jQuery makes so easy, but would we so complicated without it... is amazing!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>That&#8217;s pretty sweet. The thing jQuery makes so easy, but would we so complicated without it&#8230; is amazing!</p>]]></content:encoded>
	</item>
</channel>
</rss>

