<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Footprints in the snow of a warped mind - jQuery</title>
    <link>http://blogs.thesitedoctor.co.uk/test/</link>
    <description>newtelligence powered</description>
    <language>en-us</language>
    <copyright>Tim</copyright>
    <lastBuildDate>Mon, 12 Jul 2010 19:09:58 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>timgaunt@gmail.com</managingEditor>
    <webMaster>timgaunt@gmail.com</webMaster>
    <item>
      <trackback:ping>http://blogs.thesitedoctor.co.uk/test/Trackback.aspx?guid=213017d7-d3b5-4f9e-aeca-d71ad9e6060a</trackback:ping>
      <pingback:server>http://blogs.thesitedoctor.co.uk/test/pingback.aspx</pingback:server>
      <pingback:target>http://blogs.thesitedoctor.co.uk/test/PermaLink,guid,213017d7-d3b5-4f9e-aeca-d71ad9e6060a.aspx</pingback:target>
      <dc:creator>Tim</dc:creator>
      <wfw:comment>http://blogs.thesitedoctor.co.uk/test/CommentView,guid,213017d7-d3b5-4f9e-aeca-d71ad9e6060a.aspx</wfw:comment>
      <wfw:commentRss>http://blogs.thesitedoctor.co.uk/test/SyndicationService.asmx/GetEntryCommentsRss?guid=213017d7-d3b5-4f9e-aeca-d71ad9e6060a</wfw:commentRss>
      <title>Automatically add a show and hide link to any object with jQuery</title>
      <guid isPermaLink="false">http://blogs.thesitedoctor.co.uk/test/PermaLink,guid,213017d7-d3b5-4f9e-aeca-d71ad9e6060a.aspx</guid>
      <link>http://blogs.thesitedoctor.co.uk/test/2010/07/12/AutomaticallyAddAShowAndHideLinkToAnyObjectWithJQuery.aspx</link>
      <pubDate>Mon, 12 Jul 2010 19:09:58 GMT</pubDate>
      <description>&lt;p&gt;
&lt;img style="border-bottom: 0px; border-left: 0px; margin: 0px 0px 0px 10px; display: inline; border-top: 0px; border-right: 0px" class="wlDisabledImage" title="jquery-logo_png[1]" border="0" alt="jquery-logo_png[1]" align="right" src="http://blogs.thesitedoctor.co.uk/tim/images/Automaticallyaddashowandhidelinktoanyobj_11746/jquerylogo_png1.png" width="203" height="204" /&gt;There
are plenty of tutorials around that show you how to show or hide a div with jQuery,
you can &lt;a href="http://www.google.co.uk/search?hl=en&amp;amp;q=jquery+show+hide+div+link&amp;amp;meta="&gt;find
a load on Google&lt;/a&gt; but I wanted something that was re-usable throughout our projects
so I created the addShowHideLink jQuery plugin. 
&lt;/p&gt;
&lt;p&gt;
We’ve been using it across a few projects including &lt;a title="Crisis Cover - solving the " href="http://www.crisiscover.co.uk" target="_blank" problem?="problem?" bus?="bus?" a="a" by="by" hit="hit" get="get" you="you" if="if" happens="happens" what="what"&gt;Crisis
Cover&lt;/a&gt; for a while now and it’s catered for all our needs. Let me know if there’s
any other options you want added.
&lt;/p&gt;
&lt;p&gt;
I’ve not published any of our plug-ins before so forgive me if there are some obvious
errors but I figured someone else would find it useful.
&lt;/p&gt;
&lt;h2&gt;What does it do?
&lt;/h2&gt;
&lt;p&gt;
Simple: It hides the specified object and adds a link that shows the object when clicked.
It also swaps the show text to the specified hide text automatically.
&lt;/p&gt;
&lt;h2&gt;How do I use it?
&lt;/h2&gt;
&lt;p&gt;
I’ve kept it as simple as possible but have hopefully given it enough functionality
to suit your needs.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Basic Usage&lt;/strong&gt;
&lt;/p&gt;
&lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:322ece34-a0be-4ab5-880b-f64bd8c0851d" class="wlWriterEditableSmartContent"&gt;&lt;pre class="brush: javascript;"&gt;$('#objectToHide').addShowHideLink();&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;
&lt;strong&gt;&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Used with options&lt;/strong&gt;
&lt;/p&gt;
&lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:130248f9-a235-4446-8b7f-372bdd3d093e" class="wlWriterEditableSmartContent"&gt;&lt;pre class="brush: javascript;"&gt;$('#objectToHide').addShowHideLink({ 
		linkClass: 'showHideLnk',
		paraClass: 'showHide',
		openClass: 'showHideOpen',
		showText: 'Show Advanced Options',
		hideText: 'Hide Advanced Options',
		linkActions: function(){
			alert('The link was clicked');
		}
	});
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;
&amp;#160;
&lt;/p&gt;
&lt;h2&gt;How do I get it?
&lt;/h2&gt;
&lt;p&gt;
I’ve uploaded a more complete example to: &lt;a title="http://blogs.thesitedoctor.co.uk/tim/Plugins/addShowHideLink/" href="http://blogs.thesitedoctor.co.uk/tim/Plugins/addShowHideLink/"&gt;http://blogs.thesitedoctor.co.uk/tim/Plugins/addShowHideLink/&lt;/a&gt; so
you can get a quick idea of what it does.
&lt;/p&gt;
&lt;p&gt;
You can &lt;a href="http://blogs.thesitedoctor.co.uk/tim/files/jquery.addshowhidelink.zip"&gt;download
the plug-in here&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
Thanks to Trevor Morris for his &lt;a href="http://www.trovster.com/lab/plugins/skeleton/" target="_blank"&gt;jQuery
skeleton starter framework&lt;/a&gt;.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blogs.thesitedoctor.co.uk/test/aggbug.ashx?id=213017d7-d3b5-4f9e-aeca-d71ad9e6060a" /&gt;</description>
      <comments>http://blogs.thesitedoctor.co.uk/test/CommentView,guid,213017d7-d3b5-4f9e-aeca-d71ad9e6060a.aspx</comments>
      <category>JavaScript</category>
      <category>jQuery</category>
      <category>The Site Doctor</category>
      <category>Web Development</category>
    </item>
  </channel>
</rss>