<?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: jQuery Slide To Plugin</title>
	<atom:link href="http://jesseprice.com/jquery-slide-to-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://jesseprice.com/jquery-slide-to-plugin/</link>
	<description>Just another web development portfolio.</description>
	<lastBuildDate>Mon, 30 Jan 2012 02:34:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jesse Price</title>
		<link>http://jesseprice.com/jquery-slide-to-plugin/comment-page-1/#comment-750</link>
		<dc:creator>Jesse Price</dc:creator>
		<pubDate>Mon, 30 Jan 2012 02:34:52 +0000</pubDate>
		<guid isPermaLink="false">http://jesseprice.com/?p=1112#comment-750</guid>
		<description>Try:

&lt;code&gt;
$(function(){
    setTimeout(function(){
        Desce();
    }, 1000);
});
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Try:</p>
<p><code><br />
$(function(){<br />
    setTimeout(function(){<br />
        Desce();<br />
    }, 1000);<br />
});<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andy</title>
		<link>http://jesseprice.com/jquery-slide-to-plugin/comment-page-1/#comment-646</link>
		<dc:creator>andy</dc:creator>
		<pubDate>Thu, 17 Mar 2011 17:25:13 +0000</pubDate>
		<guid isPermaLink="false">http://jesseprice.com/?p=1112#comment-646</guid>
		<description>Im trying to invoke it by using onLoad on Body tag...but it says that couldnt start...how to call it.?
i have a timer...

here is the code


function contador(){
	setTimeout(&#039;Desce()&#039;, 1000);
	}
function Desce(){
	$().slideto({
		target : &#039;#MyDiv&#039;,
		speed  : &#039;slow&#039;
	});

}

Thanks a lot.</description>
		<content:encoded><![CDATA[<p>Im trying to invoke it by using onLoad on Body tag&#8230;but it says that couldnt start&#8230;how to call it.?<br />
i have a timer&#8230;</p>
<p>here is the code</p>
<p>function contador(){<br />
	setTimeout(&#8216;Desce()&#8217;, 1000);<br />
	}<br />
function Desce(){<br />
	$().slideto({<br />
		target : &#8216;#MyDiv&#8217;,<br />
		speed  : &#8216;slow&#8217;<br />
	});</p>
<p>}</p>
<p>Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave</title>
		<link>http://jesseprice.com/jquery-slide-to-plugin/comment-page-1/#comment-642</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Tue, 25 Jan 2011 09:42:02 +0000</pubDate>
		<guid isPermaLink="false">http://jesseprice.com/?p=1112#comment-642</guid>
		<description>No worries Jesse. Thanks again for the plugin.

I just added another tweak. I&#039;m using the plugin on a CMS-driven site where I need to initialise all my js in one include. Basically, if slideto is invoked on a page and it can&#039;t find the element it&#039;s been invoked for, it targets all anchors with a &#039;#&#039; in the href attribute. So in my case, on some pages where the target elements aren&#039;t rendered, the slideto plugin was replacing some anchor links (eg &lt;code&gt;&lt;a href=&quot;#..&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;&lt;/code&gt;) that I needed with &lt;code&gt;&lt;a href=&quot;void(0);&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;&lt;/code&gt;.

To address this I replaced line 18:
&lt;code&gt;var elem = (this.length &gt; 0) ? this : &#039;a&#039;;&lt;/code&gt; 
with this: 
&lt;code&gt;var elem = this;&lt;/code&gt;

Now slideto should only modify the links of elements it&#039;s been specifically invoked for (I realise this kinda defeats the &#039;set and forget&#039; flexibility of it, but I only need it to apply to some specific elements). 

cheers

dave</description>
		<content:encoded><![CDATA[<p>No worries Jesse. Thanks again for the plugin.</p>
<p>I just added another tweak. I&#8217;m using the plugin on a CMS-driven site where I need to initialise all my js in one include. Basically, if slideto is invoked on a page and it can&#8217;t find the element it&#8217;s been invoked for, it targets all anchors with a &#8216;#&#8217; in the href attribute. So in my case, on some pages where the target elements aren&#8217;t rendered, the slideto plugin was replacing some anchor links (eg <code><a href="#.." rel="nofollow"></a></code>) that I needed with <code><a href="void(0);" rel="nofollow"></a></code>.</p>
<p>To address this I replaced line 18:<br />
<code>var elem = (this.length &gt; 0) ? this : 'a';</code><br />
with this:<br />
<code>var elem = this;</code></p>
<p>Now slideto should only modify the links of elements it&#8217;s been specifically invoked for (I realise this kinda defeats the &#8216;set and forget&#8217; flexibility of it, but I only need it to apply to some specific elements). </p>
<p>cheers</p>
<p>dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse Price</title>
		<link>http://jesseprice.com/jquery-slide-to-plugin/comment-page-1/#comment-641</link>
		<dc:creator>Jesse Price</dc:creator>
		<pubDate>Fri, 21 Jan 2011 03:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://jesseprice.com/?p=1112#comment-641</guid>
		<description>That&#039;s a scenario that I haven&#039;t thought of... Thanks for the input.</description>
		<content:encoded><![CDATA[<p>That&#8217;s a scenario that I haven&#8217;t thought of&#8230; Thanks for the input.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse Price</title>
		<link>http://jesseprice.com/jquery-slide-to-plugin/comment-page-1/#comment-640</link>
		<dc:creator>Jesse Price</dc:creator>
		<pubDate>Fri, 21 Jan 2011 03:56:35 +0000</pubDate>
		<guid isPermaLink="false">http://jesseprice.com/?p=1112#comment-640</guid>
		<description>Hi Dave, I made sure it was backwards compatible for the anchor jump with the hash in the url. I know it&#039;s been dropped via the HTML5 specs. It still works and HTML5 is still being standardised so I figured it would be better to keep deprecated syntax that works. I appreciate your input! And yes, I totally agree with you that the id would be much better since it&#039;s unique just like the name attribute. I will have to add that in when I have the time. Just lately I&#039;ve been wired in with a ton a features for my next project.</description>
		<content:encoded><![CDATA[<p>Hi Dave, I made sure it was backwards compatible for the anchor jump with the hash in the url. I know it&#8217;s been dropped via the HTML5 specs. It still works and HTML5 is still being standardised so I figured it would be better to keep deprecated syntax that works. I appreciate your input! And yes, I totally agree with you that the id would be much better since it&#8217;s unique just like the name attribute. I will have to add that in when I have the time. Just lately I&#8217;ve been wired in with a ton a features for my next project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave</title>
		<link>http://jesseprice.com/jquery-slide-to-plugin/comment-page-1/#comment-638</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Thu, 20 Jan 2011 09:42:08 +0000</pubDate>
		<guid isPermaLink="false">http://jesseprice.com/?p=1112#comment-638</guid>
		<description>Hi again Jesse - sorry, just found another tweak. Line 26 (should have specified this in my last comment) has changed from this:
&lt;code&gt;anchor = $(&quot;a[name=&#039;&quot;+pieces[1]+&quot;&#039;]&quot;);&lt;/code&gt;

to this:
&lt;code&gt;anchor = $(&quot;*[id=&#039;&quot;+pieces[1]+&quot;&#039;]&quot;);&lt;/code&gt;

Basically, it can now target any element with an &#039;id&#039;, not just an &#039;a&#039; with a name. This means you can link directly to sections, articles, divs, headings etc (as long as they have an id) without needing to insert extra markup (empty anchor links). I&#039;m not great at js, so I hope this makes sense - it seems to work testing locally, but I&#039;m not sure if there&#039;s any performance issues or any other bugs that might arise from this... what do you think?

Thanks again for the great little plugin. Cheers,

dave</description>
		<content:encoded><![CDATA[<p>Hi again Jesse &#8211; sorry, just found another tweak. Line 26 (should have specified this in my last comment) has changed from this:<br />
<code>anchor = $("a[name='"+pieces[1]+"']");</code></p>
<p>to this:<br />
<code>anchor = $("*[id='"+pieces[1]+"']");</code></p>
<p>Basically, it can now target any element with an &#8216;id&#8217;, not just an &#8216;a&#8217; with a name. This means you can link directly to sections, articles, divs, headings etc (as long as they have an id) without needing to insert extra markup (empty anchor links). I&#8217;m not great at js, so I hope this makes sense &#8211; it seems to work testing locally, but I&#8217;m not sure if there&#8217;s any performance issues or any other bugs that might arise from this&#8230; what do you think?</p>
<p>Thanks again for the great little plugin. Cheers,</p>
<p>dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave</title>
		<link>http://jesseprice.com/jquery-slide-to-plugin/comment-page-1/#comment-637</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Thu, 20 Jan 2011 08:43:20 +0000</pubDate>
		<guid isPermaLink="false">http://jesseprice.com/?p=1112#comment-637</guid>
		<description>Hi Jesse

Nice little plugin - but I have a quick question: any specific reason you&#039;re relying on &#039;name&#039; rather than &#039;id&#039; to define the anchors/targets? (&#039;name&#039; is/has been dropped from the HTML5 spec). This may also be the reason some people may be having trouble with it, as per Maxwell above - I&#039;ve modified the version I&#039;m using to use &#039;id&#039; instead.

Also, this is unrelated, but I&#039;ve added a check in line 22 to make sure url does not equal &#039;#&#039;  &lt;code&gt;url!=&quot;#&quot;&lt;/code&gt; before replacing it with  &lt;code&gt;javascript:void()&lt;/code&gt;, since I tend to use &#039;#&#039; for dummy links while developing.

cheers

dave</description>
		<content:encoded><![CDATA[<p>Hi Jesse</p>
<p>Nice little plugin &#8211; but I have a quick question: any specific reason you&#8217;re relying on &#8216;name&#8217; rather than &#8216;id&#8217; to define the anchors/targets? (&#8216;name&#8217; is/has been dropped from the HTML5 spec). This may also be the reason some people may be having trouble with it, as per Maxwell above &#8211; I&#8217;ve modified the version I&#8217;m using to use &#8216;id&#8217; instead.</p>
<p>Also, this is unrelated, but I&#8217;ve added a check in line 22 to make sure url does not equal &#8216;#&#8217;  <code>url!="#"</code> before replacing it with  <code>javascript:void()</code>, since I tend to use &#8216;#&#8217; for dummy links while developing.</p>
<p>cheers</p>
<p>dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://jesseprice.com/jquery-slide-to-plugin/comment-page-1/#comment-634</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Wed, 08 Dec 2010 10:46:49 +0000</pubDate>
		<guid isPermaLink="false">http://jesseprice.com/?p=1112#comment-634</guid>
		<description>Hi Jesse

I&#039;ve followed you example exactly but Firebug is giving me an error: &quot;anchor.offset() is null&quot;
Any ideas?? Looking forward to using this.

Thanks

Ian.</description>
		<content:encoded><![CDATA[<p>Hi Jesse</p>
<p>I&#8217;ve followed you example exactly but Firebug is giving me an error: &#8220;anchor.offset() is null&#8221;<br />
Any ideas?? Looking forward to using this.</p>
<p>Thanks</p>
<p>Ian.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse Price</title>
		<link>http://jesseprice.com/jquery-slide-to-plugin/comment-page-1/#comment-624</link>
		<dc:creator>Jesse Price</dc:creator>
		<pubDate>Fri, 17 Sep 2010 03:07:14 +0000</pubDate>
		<guid isPermaLink="false">http://jesseprice.com/?p=1112#comment-624</guid>
		<description>When I have time I will add another option for the pixel spacing from the top or bottom.  I&#039;ve been extremely busy.  Hopefully I can add this new feature this weekend!  Cheers.</description>
		<content:encoded><![CDATA[<p>When I have time I will add another option for the pixel spacing from the top or bottom.  I&#8217;ve been extremely busy.  Hopefully I can add this new feature this weekend!  Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://jesseprice.com/jquery-slide-to-plugin/comment-page-1/#comment-623</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Fri, 10 Sep 2010 19:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://jesseprice.com/?p=1112#comment-623</guid>
		<description>Thanks for the code - This is exactly what I needed: Albeit I also need the adjustment that Santoir has requested.. Do you have any thoughts on shifting the anchor point - In my situation due to a position-fixed header &#039;hiding&#039; the anchored content when you get there?</description>
		<content:encoded><![CDATA[<p>Thanks for the code &#8211; This is exactly what I needed: Albeit I also need the adjustment that Santoir has requested.. Do you have any thoughts on shifting the anchor point &#8211; In my situation due to a position-fixed header &#8216;hiding&#8217; the anchored content when you get there?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

