<?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>Dana Woodman &#187; tutorial</title>
	<atom:link href="http://www.danawoodman.com/tag/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danawoodman.com</link>
	<description>The online home of Dana Woodman.</description>
	<lastBuildDate>Tue, 31 Aug 2010 22:05:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Introducing jquery-showhide</title>
		<link>http://www.danawoodman.com/2009/11/introducing-jquery-showhide/</link>
		<comments>http://www.danawoodman.com/2009/11/introducing-jquery-showhide/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 00:50:49 +0000</pubDate>
		<dc:creator>Dana Woodman</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[announcement]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.danawoodman.com/?p=45</guid>
		<description><![CDATA[

I have come into the need lately of solid show/hide plugin for jQuery and couldn&#8217;t find anything out there that suited my needs so I created on myself. Learn how to use it in this tutorial.



So I&#8217;ve created another jQuery plugin recently called jquery-showhide:

http://code.google.com/p/jquery-showhide/

Overview

jquery-showhide is a more robust &#8220;toggle&#8221; function that allows you to do [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.danawoodman.com/2009/11/introducing-jquery-showhide/4433457340_b5ff39ae69_o/" rel="attachment wp-att-436"><img src="http://www.danawoodman.com/wp-content/uploads/2009/11/4433457340_b5ff39ae69_o.jpg" alt="Introducing jquery-showhide" title="Introducing jquery-showhide" width="610" height="220" class="alignnone size-full wp-image-436" /></a></p>

<p>I have come into the need lately of solid show/hide plugin for jQuery and couldn&#8217;t find anything out there that suited my needs so I created on myself. Learn how to use it in this tutorial.</p>

<p><span id="more-45"></span></p>

<p>So I&#8217;ve created another jQuery plugin recently called <strong>jquery-showhide</strong>:</p>

<p><a href="http://code.google.com/p/jquery-showhide/" target="_blank">http://code.google.com/p/jquery-showhide/</a></p>

<h3>Overview</h3>

<p>jquery-showhide is a more robust &#8220;toggle&#8221; function that allows you to do a few cool things that the default jQuery <code>.toggle()</code> function does not. Please check out the video below to see an example usage of the plugin:</p>

<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="558" height="442" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /><param name="flashVars" value="thumb=http://content.screencast.com/users/woodman.dana/folders/Jing/media/69d3ee5c-ef5e-4901-a6fa-62dc41585d06/FirstFrame.jpg&amp;containerwidth=558&amp;containerheight=442&amp;showbranding=false&amp;content=http://content.screencast.com/users/woodman.dana/folders/Jing/media/69d3ee5c-ef5e-4901-a6fa-62dc41585d06/2009-08-11_1841.mp4" /><param name="allowFullScreen" value="true" /><param name="scale" value="showall" /><param name="allowScriptAccess" value="always" /><param name="base" value="http://content.screencast.com/users/woodman.dana/folders/Jing/media/69d3ee5c-ef5e-4901-a6fa-62dc41585d06/" /><param name="src" value="http://content.screencast.com/users/woodman.dana/folders/Jing/media/69d3ee5c-ef5e-4901-a6fa-62dc41585d06/jingh264player.swf" /><param name="flashvars" value="thumb=http://content.screencast.com/users/woodman.dana/folders/Jing/media/69d3ee5c-ef5e-4901-a6fa-62dc41585d06/FirstFrame.jpg&amp;containerwidth=558&amp;containerheight=442&amp;showbranding=false&amp;content=http://content.screencast.com/users/woodman.dana/folders/Jing/media/69d3ee5c-ef5e-4901-a6fa-62dc41585d06/2009-08-11_1841.mp4" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="558" height="442" src="http://content.screencast.com/users/woodman.dana/folders/Jing/media/69d3ee5c-ef5e-4901-a6fa-62dc41585d06/jingh264player.swf" base="http://content.screencast.com/users/woodman.dana/folders/Jing/media/69d3ee5c-ef5e-4901-a6fa-62dc41585d06/" allowscriptaccess="always" scale="showall" allowfullscreen="true" flashvars="thumb=http://content.screencast.com/users/woodman.dana/folders/Jing/media/69d3ee5c-ef5e-4901-a6fa-62dc41585d06/FirstFrame.jpg&amp;containerwidth=558&amp;containerheight=442&amp;showbranding=false&amp;content=http://content.screencast.com/users/woodman.dana/folders/Jing/media/69d3ee5c-ef5e-4901-a6fa-62dc41585d06/2009-08-11_1841.mp4" bgcolor="#FFFFFF" quality="high"></embed></object></p>

<p>This video shows you what you can do with the plugin, including using the &#8220;autofocus&#8221; feature.</p>

<h3>Features</h3>

<p>First off, you can <strong>toggle the text of the toggle object</strong> to whatever you want. For example, if you have a hidden &#8220;categories&#8221; table, you can have the toggle link say &#8220;Show categories&#8221; and after it is clicked and the categories table is shown, you can have it say &#8220;Hide categories&#8221;.</p>

<p>Another useful thing is <strong>&#8220;autofocusing&#8221;</strong> which lets you define a field within your hidden object to autofocus when showing it. This is useful if you have a hidden form that you want a user to be able to type in as soon as it is visible, rather than having to click on the field manually. I&#8217;ve been using this on some personal projects and it really does make things much quicker.</p>

<p>Since jquery-showhide is completely &#8220;class&#8221; based (it uses classes to show/hide objects, rather than applying <code>style="dispaly: none"</code>/<code>style="display: block"</code>), it is a little more robust, especially if you would like to do more than just show/hide a field (such as changing it&#8217;s display or size).</p>

<h3>Using</h3>

<p>If you want to use the plugin, go to <a href="http://code.google.com/p/jquery-showhide/" target="_blank">http://code.google.com/p/jquery-showhide/</a> and download the latest release and view the demo/demo.html file to see how to use it. Also check out the notes on the Google Code page for more info.</p>

<p>I hope you enjoy the feature and if you need to get in touch with me or find a bug, please leave a comment or <a href="http://code.google.com/p/jquery-showhide/issues/list" target="_blank">submit a bug to Google Code</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danawoodman.com/2009/11/introducing-jquery-showhide/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
<enclosure url="http://content.screencast.com/users/woodman.dana/folders/Jing/media/69d3ee5c-ef5e-4901-a6fa-62dc41585d06/2009-08-11_1841.mp4" length="189150" type="video/mp4" />
		</item>
		<item>
		<title>Creating a simple &#8220;Delete&#8221; confirmation dialog with jQuery</title>
		<link>http://www.danawoodman.com/2009/11/creating-a-simple-delete-confirmation-dialog-with-jquery/</link>
		<comments>http://www.danawoodman.com/2009/11/creating-a-simple-delete-confirmation-dialog-with-jquery/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 23:59:08 +0000</pubDate>
		<dc:creator>Dana Woodman</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.danawoodman.com/?p=31</guid>
		<description><![CDATA[I often find the need to add a confirmation to a delete link in my applications and in this short tutorial I will show you how to do it using just a few lines of jQuery.



I often find the need to add a confirmation to a delete link in my applications. Below is a very [...]]]></description>
			<content:encoded><![CDATA[<p>I often find the need to add a confirmation to a delete link in my applications and in this short tutorial I will show you how to do it using just a few lines of jQuery.</p>

<p><span id="more-31"></span></p>

<p>I often find the need to add a confirmation to a delete link in my applications. Below is a very simple way to achieve this with jQuery.</p>

<p>First, you&#8217;ll need a link that you will be clicking where you want the confirmation box to pop-up.
<pre>&lt;p&gt;&lt;a href="/some/path/to/delete" class="delete"&gt;Delete&lt;/a&gt;&lt;/p&gt;</pre>
Next, you will need to add in the jQuery. If you haven&#8217;t imported jQuery in you page yet, do so above this code.
<pre>&lt;script type="text/javascript"&gt;
    $(function() {
        $('.delete').click(function() {
            return confirm("Delete this item?");
        });
    });
&lt;/script&gt;</pre>
Now all this does it pops up a &#8220;confirm&#8221; dialog box and if the user clicks &#8220;OK&#8221; the link will be followed, deleting the item. If they click &#8220;Cancel&#8221; nothing will happen.</p>

<p>Well, that&#8217;s it. Nothing special, but comes in handy once and a while.</p>

<p><em><strong>Note</strong>: Thanks to Brian for his suggestion!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.danawoodman.com/2009/11/creating-a-simple-delete-confirmation-dialog-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
