<?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>Brendan &#38; Tiffany Sullivan &#187; api</title>
	<atom:link href="http://www.sullivanrealm.net/tag/api/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sullivanrealm.net</link>
	<description>Apparently we&#039;re nomads. OH, IL, TN, now UP Michigan...</description>
	<lastBuildDate>Tue, 03 Jan 2012 13:00:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>couple of fun and useful jQuery Plugins</title>
		<link>http://www.sullivanrealm.net/2009/11/12/couple-of-fun-and-useful-jquery-plugins/</link>
		<comments>http://www.sullivanrealm.net/2009/11/12/couple-of-fun-and-useful-jquery-plugins/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 05:00:57 +0000</pubDate>
		<dc:creator>brendan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[ajaxForm]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://www.sullivanrealm.net/?p=117</guid>
		<description><![CDATA[I am far from an accomplished web developer, but jQuery is one tool that helps out immensely in writing javascript that &#8220;just works&#8221;. As many of you are aware, browser differences create all sorts of havoc when trying to write code that navigates the DOM. And writing code from scratch to validate forms is a [...]]]></description>
			<content:encoded><![CDATA[<p>I am far from an accomplished web developer, but jQuery is one tool that helps out immensely in writing javascript that &#8220;just works&#8221;. As many of you are aware, browser differences create all sorts of havoc when trying to write code that navigates the DOM. And writing code from scratch to validate forms is a serious pain in the butt. So here are a few <a href="http://jquery.com">jQuery</a> plugins that might make your life a little easier in that regard.</p>
<p>First off, there is the the combined magic of the <a href="http://malsup.com/jquery/form/">jquery Form plugin from malsup.com</a> which creates a nice AJAX-submitted form with one quick line of code</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;">'#form'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ajaxForm</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Optionally, you can pass the .ajaxForm() function any <a href="http://docs.jquery.com/Ajax/jQuery.ajax#options">options</a> that you would normally pass to a regular jQuery .ajax() method like so&#8230;.</p>
<p>Now that&#8217;s fun, but it can be extended just a LITTLE bit more with the <a href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/">jquery validate plugin</a>. Here we can define some simple rules in JSON format and the validation plugin will automatically display customizable messages for any errors that are found before submitting the form. The validation function takes the option <em>submitHandler </em>to create the ajaxSubmit event from the Form plugin above.</p>
<p>Here is an example:</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;">'#contactus_form'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">validate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
	submitHandler<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>form<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		$<span style="color: #009900;">&#40;</span>form<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ajaxSubmit</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
			success<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>msg<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>msg<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
			error<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>msg<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>msg<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
	rules<span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000066;">name</span><span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;required&quot;</span><span style="color: #339933;">,</span>
		email<span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>
			required<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
			email<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span>
		<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
		message<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;required&quot;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
	messages<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000066;">name</span><span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Name is required&quot;</span><span style="color: #339933;">,</span>
		email<span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>
			required<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Email is required&quot;</span><span style="color: #339933;">,</span>
			email<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Email is in an invalid format&quot;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
		message<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Some message to the staff is required&quot;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
	errorLabelContainer<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;#ajaxmsg&quot;</span><span style="color: #339933;">,</span>
	wrapper<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;li&quot;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Obviously you need to validate the data in whatever script you are handling on the server side, but the jQuery error messages are a great way to improve your forms usability and they can be styled to be attractive and make any input errors very clear to your users.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sullivanrealm.net/2009/11/12/couple-of-fun-and-useful-jquery-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I got my Google Wave Invite!</title>
		<link>http://www.sullivanrealm.net/2009/10/13/i-got-my-google-wave-invite/</link>
		<comments>http://www.sullivanrealm.net/2009/10/13/i-got-my-google-wave-invite/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 11:55:33 +0000</pubDate>
		<dc:creator>brendan</dc:creator>
				<category><![CDATA[Websites]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[wave]]></category>

		<guid isPermaLink="false">http://www.sullivanrealm.net/?p=109</guid>
		<description><![CDATA[*Dances* Finally got my Google Wave invite. It looks very promising, but sadly I don&#8217;t know anyone else who&#8217;s gotten one yet, so I have no one to talk to Very lonely. If you&#8217;ve got an account, let me know, I&#8217;d just like to try out the various features that are available.]]></description>
			<content:encoded><![CDATA[<p>*Dances*</p>
<p>Finally got my Google Wave invite. It looks very promising, but sadly I don&#8217;t know anyone else who&#8217;s gotten one yet, so I have no one to talk to <img src='http://www.sullivanrealm.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  Very lonely. If you&#8217;ve got an account, let me know, I&#8217;d just like to try out the various features that are available.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sullivanrealm.net/2009/10/13/i-got-my-google-wave-invite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

