<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/jquery/tags/anchor</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 21 May 2013 23:15:48 GMT</pubDate>
<item>
<title>(jQuery) jQuery animated page scroll to anchor tag function - ksnagra</title>
<link>http://snipplr.com/view/48385/jquery-animated-page-scroll-to-anchor-tag-function/</link>
<description><![CDATA[ <p>This function allows you to pass any div anchor tag as a parameter to scroll to. You can easily add easing after the 'duration' parameter in the jQuery animation function.</p> ]]></description>
<pubDate>Fri, 04 Feb 2011 08:51:58 GMT</pubDate>
<guid>http://snipplr.com/view/48385/jquery-animated-page-scroll-to-anchor-tag-function/</guid>
</item>
<item>
<title>(jQuery) XHTML Strict Anchor jQuery Fix - digitalclubb</title>
<link>http://snipplr.com/view/45679/xhtml-strict-anchor-jquery-fix/</link>
<description><![CDATA[ <p>The most annoying thing I find working with the strict doctype is the inability to send users off to a site in a new window.

To combat this, I always use the above snippet.

Some people just stick the attribute on the anchors when the page loads, however for semi-accessibility, I think this works well.</p> ]]></description>
<pubDate>Mon, 13 Dec 2010 21:26:27 GMT</pubDate>
<guid>http://snipplr.com/view/45679/xhtml-strict-anchor-jquery-fix/</guid>
</item>
<item>
<title>(jQuery) jQuery scroll to Anchor script - e11world</title>
<link>http://snipplr.com/view/42429/jquery-scroll-to-anchor-script/</link>
<description><![CDATA[ <p>This one worked for me and I thought I'd share it with the rest of you!</p> ]]></description>
<pubDate>Sun, 17 Oct 2010 08:55:28 GMT</pubDate>
<guid>http://snipplr.com/view/42429/jquery-scroll-to-anchor-script/</guid>
</item>
<item>
<title>(jQuery) jQuery: repair anchors link on web with BASE tag - knedle</title>
<link>http://snipplr.com/view/31151/jquery-repair-anchors-link-on-web-with-base-tag/</link>
<description><![CDATA[ <p>on using any wysiwyg editor (f.e. CKEditor) is inserted link to anchor on same page in this form: [a href="#anchor"]text[/a]

if on web site is used tag BASE, anchors links are wrong - on all page are on this url: www.domain.com/#anchor

this function repair this anchor link to correct url</p> ]]></description>
<pubDate>Fri, 09 Apr 2010 03:43:24 GMT</pubDate>
<guid>http://snipplr.com/view/31151/jquery-repair-anchors-link-on-web-with-base-tag/</guid>
</item>
<item>
<title>(jQuery) jQuery External Link Snippet for XHTML Strict 1.0 - SamBenson</title>
<link>http://snipplr.com/view/29817/jquery-external-link-snippet-for-xhtml-strict-10/</link>
<description><![CDATA[ <p>There are plenty of jQuery snippets like this on Snipplr, but most of them are either overly complicated or defeat the object of not using the target attribute in your HTML. (Although to be honest, if you're 100% XHTML Strict and even vaguely Web Standards-minded you should let the user decide whether or not to open a link in a new window - we shouldn't force it upon them ).

This one however, IS simple - it looks for all anchor tags with rel="external" (the correct way to specify an external link) and binds a click event to them which, when activated, prevents the default action and opens the link in a new window. 

Not a target attribute in site!</p> ]]></description>
<pubDate>Tue, 16 Mar 2010 05:18:23 GMT</pubDate>
<guid>http://snipplr.com/view/29817/jquery-external-link-snippet-for-xhtml-strict-10/</guid>
</item>
<item>
<title>(jQuery) jQuery Scroll to Anchor - davebowker</title>
<link>http://snipplr.com/view/26454/jquery-scroll-to-anchor/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 14 Jan 2010 08:27:21 GMT</pubDate>
<guid>http://snipplr.com/view/26454/jquery-scroll-to-anchor/</guid>
</item>
<item>
<title>(jQuery) Call a function on an anchored object - dougunderscorenelson</title>
<link>http://snipplr.com/view/17681/call-a-function-on-an-anchored-object/</link>
<description><![CDATA[ <p>Sometimes you click a link like faq.html#item5 and, after the browser jumps you to the anchor, you have trouble spotting the item you're looking for. anchorAway is a little function that helps you call a function on anchored items, maybe something like a scrollTo or a background color, that helps users easily spot the content you directed them to.

anchorAway parses the window.location for an anchor (#foo), finds it, and calls the function (act(bar)) on it. It also finds any on-page links to the objects you've specified and binds the same function to their click event.</p> ]]></description>
<pubDate>Thu, 30 Jul 2009 10:44:09 GMT</pubDate>
<guid>http://snipplr.com/view/17681/call-a-function-on-an-anchored-object/</guid>
</item>
<item>
<title>(jQuery) jQuery submit form with an anchor tag - wjbrown</title>
<link>http://snipplr.com/view/16351/jquery-submit-form-with-an-anchor-tag/</link>
<description><![CDATA[ <p>Just a little bit of code if u are interested in using links for form submission.  I'm aware of the dangers of using links in this case, but don't really care.  They're way easier to style.</p> ]]></description>
<pubDate>Fri, 26 Jun 2009 14:17:39 GMT</pubDate>
<guid>http://snipplr.com/view/16351/jquery-submit-form-with-an-anchor-tag/</guid>
</item>
</channel>
</rss>