<?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; jQuery</title>
	<atom:link href="http://www.danawoodman.com/tag/jquery/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-input-replacement</title>
		<link>http://www.danawoodman.com/2009/11/introducing-jquery-input-replacement/</link>
		<comments>http://www.danawoodman.com/2009/11/introducing-jquery-input-replacement/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 00:52:18 +0000</pubDate>
		<dc:creator>Dana Woodman</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>

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

I looked around for a good input text replacement plugin for jQuery but couldn&#8217;t find anything that did what I wanted so I created one myself. Learn how to use the plugin in this post.



I just released a new jQuery plugin on Google Code called jquery-input-replacement:

http://code.google.com/p/jquery-input-replacement/

The code performs a simple but useful function that I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.danawoodman.com/2009/11/introducing-jquery-input-replacement/4432666799_c55fc6c31f_o/" rel="attachment wp-att-439"><img src="http://www.danawoodman.com/wp-content/uploads/2009/11/4432666799_c55fc6c31f_o.jpg" alt="Introducing jquery-input-replacement" title="Introducing jquery-input-replacement" width="610" height="220" class="alignnone size-full wp-image-439" /></a></p>

<p>I looked around for a good input text replacement plugin for jQuery but couldn&#8217;t find anything that did what I wanted so I created one myself. Learn how to use the plugin in this post.</p>

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

<p>I just released a new jQuery plugin on Google Code called <strong>jquery-input-replacement</strong>:</p>

<p><a href="http://code.google.com/p/jquery-input-replacement/">http://code.google.com/p/jquery-input-replacement/</a></p>

<p>The code performs a simple but useful function that I seem to always need so I decided to create a plugin that I (and others) could reuse.</p>

<p>Basically, the code replaces blank HTML form inputs with a string of text that is used to supply default values into the field. This is primarily used to give a field a default value, such as search fields. Below is a short little video showing what it does:</p>

<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="174" height="252" 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/485a2c24-b22d-4c15-97b3-2e95e0c1584a/FirstFrame.jpg&amp;containerwidth=174&amp;containerheight=252&amp;showbranding=false&amp;content=http://content.screencast.com/users/woodman.dana/folders/Jing/media/485a2c24-b22d-4c15-97b3-2e95e0c1584a/2009-08-11_1735.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/485a2c24-b22d-4c15-97b3-2e95e0c1584a/" /><param name="src" value="http://content.screencast.com/users/woodman.dana/folders/Jing/media/485a2c24-b22d-4c15-97b3-2e95e0c1584a/jingh264player.swf" /><param name="flashvars" value="thumb=http://content.screencast.com/users/woodman.dana/folders/Jing/media/485a2c24-b22d-4c15-97b3-2e95e0c1584a/FirstFrame.jpg&amp;containerwidth=174&amp;containerheight=252&amp;showbranding=false&amp;content=http://content.screencast.com/users/woodman.dana/folders/Jing/media/485a2c24-b22d-4c15-97b3-2e95e0c1584a/2009-08-11_1735.mp4" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="174" height="252" src="http://content.screencast.com/users/woodman.dana/folders/Jing/media/485a2c24-b22d-4c15-97b3-2e95e0c1584a/jingh264player.swf" base="http://content.screencast.com/users/woodman.dana/folders/Jing/media/485a2c24-b22d-4c15-97b3-2e95e0c1584a/" allowscriptaccess="always" scale="showall" allowfullscreen="true" flashvars="thumb=http://content.screencast.com/users/woodman.dana/folders/Jing/media/485a2c24-b22d-4c15-97b3-2e95e0c1584a/FirstFrame.jpg&amp;containerwidth=174&amp;containerheight=252&amp;showbranding=false&amp;content=http://content.screencast.com/users/woodman.dana/folders/Jing/media/485a2c24-b22d-4c15-97b3-2e95e0c1584a/2009-08-11_1735.mp4" bgcolor="#FFFFFF" quality="high"></embed></object></p>

<p>The plugin lets you define the field (or fields) that you want to apply the text to and (optionally) the CSS class to apply to the input when the text is applied to it.</p>

<p>When a user clicks on the field (when it gains &#8220;focus&#8221;), the CSS class gets removed and so does the initial text, allowing the user to enter in their content.</p>

<p>This can be used for search fields, login forms, and a number of other applications.</p>

<p>I hope the code is useful to someone out there and if you use it or have questions, feel free to post a comment or <a href="http://code.google.com/p/jquery-input-replacement/issues/list" target="_blank">submit a bug to Google Code</a>.</p>

<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 415px; width: 1px; height: 1px;">&lt;object width=&#8221;174&#8243; height=&#8221;252&#8243;&gt; &lt;param name=&#8221;movie&#8221; value=&#8221;http://content.screencast.com/users/woodman.dana/folders/Jing/media/485a2c24-b22d-4c15-97b3-2e95e0c1584a/jingh264player.swf&#8221;&gt;&lt;/param&gt; &lt;param name=&#8221;quality&#8221; value=&#8221;high&#8221;&gt;&lt;/param&gt; &lt;param name=&#8221;bgcolor&#8221; value=&#8221;#FFFFFF&#8221;&gt;&lt;/param&gt; &lt;param name=&#8221;flashVars&#8221; value=&#8221;thumb=http://content.screencast.com/users/woodman.dana/folders/Jing/media/485a2c24-b22d-4c15-97b3-2e95e0c1584a/FirstFrame.jpg&amp;containerwidth=174&amp;containerheight=252&amp;showbranding=false&amp;content=http://content.screencast.com/users/woodman.dana/folders/Jing/media/485a2c24-b22d-4c15-97b3-2e95e0c1584a/2009-08-11_1735.mp4&#8243;&gt;&lt;/param&gt; &lt;param name=&#8221;allowFullScreen&#8221; value=&#8221;true&#8221;&gt;&lt;/param&gt; &lt;param name=&#8221;scale&#8221; value=&#8221;showall&#8221;&gt;&lt;/param&gt; &lt;param name=&#8221;allowScriptAccess&#8221; value=&#8221;always&#8221;&gt;&lt;/param&gt; &lt;param name=&#8221;base&#8221; value=&#8221;http://content.screencast.com/users/woodman.dana/folders/Jing/media/485a2c24-b22d-4c15-97b3-2e95e0c1584a/&#8221;&gt;&lt;/param&gt;  &lt;embed src=&#8221;http://content.screencast.com/users/woodman.dana/folders/Jing/media/485a2c24-b22d-4c15-97b3-2e95e0c1584a/jingh264player.swf&#8221; quality=&#8221;high&#8221; bgcolor=&#8221;#FFFFFF&#8221; width=&#8221;174&#8243; height=&#8221;252&#8243; type=&#8221;application/x-shockwave-flash&#8221; allowScriptAccess=&#8221;always&#8221; flashVars=&#8221;thumb=http://content.screencast.com/users/woodman.dana/folders/Jing/media/485a2c24-b22d-4c15-97b3-2e95e0c1584a/FirstFrame.jpg&amp;containerwidth=174&amp;containerheight=252&amp;showbranding=false&amp;content=http://content.screencast.com/users/woodman.dana/folders/Jing/media/485a2c24-b22d-4c15-97b3-2e95e0c1584a/2009-08-11_1735.mp4&#8243; allowFullScreen=&#8221;true&#8221; base=&#8221;http://content.screencast.com/users/woodman.dana/folders/Jing/media/485a2c24-b22d-4c15-97b3-2e95e0c1584a/&#8221; scale=&#8221;showall&#8221;&gt;&lt;/embed&gt; &lt;/object&gt;</div>
]]></content:encoded>
			<wfw:commentRss>http://www.danawoodman.com/2009/11/introducing-jquery-input-replacement/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
<enclosure url="http://content.screencast.com/users/woodman.dana/folders/Jing/media/485a2c24-b22d-4c15-97b3-2e95e0c1584a/2009-08-11_1735.mp4" length="109169" type="video/mp4" />
		</item>
		<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>
