<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dom111.co.uk &#187; addCaptions</title>
	<atom:link href="http://www.dom111.co.uk/blog/tag/addcaptions/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dom111.co.uk/blog</link>
	<description>Move along. Nothing to see here.</description>
	<lastBuildDate>Wed, 26 Oct 2011 16:37:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>jQuery addCaptions 0.2 &#8211; Minor update</title>
		<link>http://www.dom111.co.uk/blog/coding/jquery-addcaptions-0-2-minor-update/139</link>
		<comments>http://www.dom111.co.uk/blog/coding/jquery-addcaptions-0-2-minor-update/139#comments</comments>
		<pubDate>Wed, 05 Aug 2009 23:34:25 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[addCaptions]]></category>
		<category><![CDATA[image caption]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=139</guid>
		<description><![CDATA[I&#8217;ve been using the jQuery addCaptions plugin and have come across a couple of new features that I felt were required and have fixed a bug in the previous verison. I have added an exclude option to the settings so you can prevent captions being added to elements not required (like a reCaptcha box&#8230;). It&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using the jQuery addCaptions plugin and have come across a couple of new features that I felt were required and have fixed a bug in the previous verison.</p>
<p>I have added an <code>exclude</code> option to the settings so you can prevent captions being added to elements not required (like a reCaptcha box&#8230;). It&#8217;s used like this:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div.demo'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addCaptions</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #3366CC;">'exclude'</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #3366CC;">'alt'</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span>
      <span style="color: #009966; font-style: italic;">/orange/</span>
    <span style="color: #009900;">&#93;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>This would exclude any images that have the word &#8216;orange&#8217; in the the <code>alt</code> attribute.</p>
<p>I also fixed a minor bug in which the script would look for captions in elements in reverse order (whoops!).</p>
<p>The only other change is making the elements found within the container a selector instead of an element option and a class option.</p>
<p>There is <a href="/files/jquery-addcaptions/0.2">an updated demo here</a>, or you can <a href="/files/jquery-addcaptions/jquery.addcaptions-0.2.tar.gz">just download the script here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/jquery-addcaptions-0-2-minor-update/139/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

