<?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>MoonKat Creations</title>
	<atom:link href="http://www.moonkatcreations.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.moonkatcreations.com</link>
	<description>Not just another WordPress blog about web design</description>
	<lastBuildDate>Tue, 27 Jul 2010 04:50:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Easy jQuery Form Validation</title>
		<link>http://www.moonkatcreations.com/uncategorized/easy-jquery-form-validation/</link>
		<comments>http://www.moonkatcreations.com/uncategorized/easy-jquery-form-validation/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 21:40:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.moonkatcreations.com/?p=300</guid>
		<description><![CDATA[This is hands-down the easiest jQuery form validation that's out there—that I've found anyway.]]></description>
			<content:encoded><![CDATA[<p>This is hands-down the easiest jQuery form validation that&#8217;s out there—that I&#8217;ve found anyway.<br />
<code><br />
$('form.validate').submit(function() {<br />
$(this).find('div span').remove();<br />
$(this).find('span.error-message').hide();</code></p>
<p>var valid = true;<br />
$(this).find(&#8216;.req&#8217;).each(function() {<br />
if ($(this).val() == &#8220;&#8221;) {<br />
$(this).after(&#8216;&lt;span&gt;Required!&lt;/span&gt;&#8217;);<br />
valid = false;<br />
} else if ($(this).hasClass(&#8216;req-email&#8217;) &amp;&amp; !checkemail($(this).val())) {<br />
$(this).after(&#8216;&lt;span&gt;Invalid E-mail!&lt;/span&gt;&#8217;);<br />
valid = false;<br />
} else if ($(this).hasClass(&#8216;req-phone&#8217;) &amp;&amp; checkphone($(this).val())) {<br />
$(this).after(&#8216;&lt;span&gt;Numbers Only!&lt;/span&gt;&#8217;);<br />
valid = false;<br />
}<br />
});<br />
if (!valid) {<br />
$(this).find(&#8217;span.error-message&#8217;).text(&#8220;Please correct the above errors.&#8221;).show();<br />
return false;<br />
}<br />
});<br />
function checkemail(e){<br />
var emailfilter = /^w+[+.w-]*@([w-]+.)*w+[w-]*.([a-z]{2,4}|d+)$/i<br />
return emailfilter.test(e);<br />
}<br />
function checkphone(e) {<br />
var filter = /[0-9]/<br />
return filter.test(e);<br />
}</p>
<p>Found here: <a href="http://www.aarongloege.com/blog/web-development/javascript/jquery/easy-form-validation/">http://www.aarongloege.com/blog/web-development/javascript/jquery/easy-form-validation/</a></p>
<p>What makes it even better is that it&#8217;s highly customizable. I used Aaron&#8217;s structure to write my own custom validation. I&#8217;ve shared here the additional/modified filters.</p>
<p><code>function checkemail(e){<br />
var emailfilter = /^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/<br />
return emailfilter.test(e);<br />
}<br />
function checkphone(e) {<br />
var filter = /[0-9]{10}/<br />
return filter.test(e);<br />
}<br />
function checkzip(e){<br />
var zipfilter = /[0-9]{5}/<br />
return zipfilter.test(e);<br />
}<br />
function checkpassword(e) {<br />
var passwordfilter = /^.{6,50}$/<br />
return passwordfilter.test(e);<br />
}<br />
function checkcreditcard(e) {<br />
var creditcardfilter = /[0-9]{15,16}/<br />
return creditcardfilter.test(e);<br />
}</code></p>
<p>You can write as many of these as you want. Additionally, though he has his error messages writing to a span, you can insert whatever kind of action you want to happen inside the if/else statements.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.moonkatcreations.com/uncategorized/easy-jquery-form-validation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Safari Toolbar on iPhone</title>
		<link>http://www.moonkatcreations.com/web-design/development/remove-safari-toolbar-on-iphone/</link>
		<comments>http://www.moonkatcreations.com/web-design/development/remove-safari-toolbar-on-iphone/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 20:22:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.moonkatcreations.com/?p=298</guid>
		<description><![CDATA[Use this code if you want your web app to feel more like a native app. Thanks to Sitepoint for this one.]]></description>
			<content:encoded><![CDATA[<p>Use this code if you want your web app to feel more like a native app. Thanks to <a title="Link to article in Sitepoint" href="http://articles.sitepoint.com/article/iphone-development-12-tips/2" target="_blank">Sitepoint</a> for this one.</p>
<p><code>window.addEventListener('load', function(){<br />
setTimeout(scrollTo, 0, 0, 1);<br />
}, false);</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.moonkatcreations.com/web-design/development/remove-safari-toolbar-on-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forward/Next Script for jQuery Tools Tabs</title>
		<link>http://www.moonkatcreations.com/web-design/jquery/forwardnext-script-for-jquery-tools-tabs/</link>
		<comments>http://www.moonkatcreations.com/web-design/jquery/forwardnext-script-for-jquery-tools-tabs/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 21:07:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.moonkatcreations.com/?p=292</guid>
		<description><![CDATA[Make forward and next buttons or links on each tab view. In the rel tags of each button, place the id of the tab that would be next or before in the sequence.]]></description>
			<content:encoded><![CDATA[<p>Make forward and next buttons or links on each tab view. In the rel tags of each button, place the id of the tab that would be next or before in the sequence.</p>
<p><code>&lt;button rel="#tab1"&gt;&amp;nbsp;&lt;/button&gt;<br />
&lt;button rel="#tab3"&gt;&amp;nbsp;&lt;/button&gt;</code></p>
<p>Then, use this handy little script:</p>
<p><code>$('.nav_arrow').click(function () {<br />
var nextPage = $(this).attr('rel');<br />
$(nextPage).click();<br />
return false;<br />
});</code></p>
<p>Effectively, you are telling the forward or next button that if it&#8217;s clicked, cause the corresponding tab to be clicked, opening that view.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.moonkatcreations.com/web-design/jquery/forwardnext-script-for-jquery-tools-tabs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Clearfields Plugin</title>
		<link>http://www.moonkatcreations.com/web-design/jquery/jquery-clearfields-plugin/</link>
		<comments>http://www.moonkatcreations.com/web-design/jquery/jquery-clearfields-plugin/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 20:06:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.moonkatcreations.com/?p=286</guid>
		<description><![CDATA[It's easy to implement. Download clearfield.js and link it into your page. Then place the class "clearField" on all your inputs, selects, and textareas. Instantiate the function in your custom javascript page with this:]]></description>
			<content:encoded><![CDATA[<p>This is not the one mentioned on jQuery.com (<a href="http://plugins.jquery.com/project/clearField)">http://plugins.jquery.com/project/clearField)</a>. However, this may have been inspired by it. I can&#8217;t remember where this plugin came from, to be totally honest. It was possibly written by my ex-coworker Nathan. Any-who, if the author steps forward, I will be glad to attribute it.</p>
<p>It&#8217;s easy to implement. Download <a title="Go to clearfield.js" href="http://docs.google.com/leaf?id=0B4rh0uE53CoyYTRlODRhNzEtMjkxMC00NTA1LTlkYzMtNGZhYzA2NDNlZWFm&amp;hl=en&amp;authkey=CKPF1Bg" target="_blank">clearfield.js</a> and link it into your page. Then place the class &#8220;clearField&#8221; on all your inputs, selects, and textareas. Instantiate the function in your custom javascript page with this:</p>
<p><code>$('.clearField').clearField();</code></p>
<p>If you don&#8217;t have access to the form element markup, or you are using a framework, a little bit of jQuery can be used to add the necessary classes:</p>
<p><code>$('input, select').addClass('clearField');</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.moonkatcreations.com/web-design/jquery/jquery-clearfields-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No list bullets in IE6</title>
		<link>http://www.moonkatcreations.com/web-design/browsers/no-list-bullets-in-ie6/</link>
		<comments>http://www.moonkatcreations.com/web-design/browsers/no-list-bullets-in-ie6/#comments</comments>
		<pubDate>Tue, 18 May 2010 15:16:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[IE6]]></category>

		<guid isPermaLink="false">http://www.moonkatcreations.com/?p=284</guid>
		<description><![CDATA[Apparently, IE6 doesn&#8217;t display bullets on a list that&#8217;s floated, or display inline. The solution for the floating problem: wrap the list in a div and float the div.
]]></description>
			<content:encoded><![CDATA[<p>Apparently, IE6 doesn&#8217;t display bullets on a list that&#8217;s floated, or display inline. The solution for the floating problem: wrap the list in a div and float the div.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.moonkatcreations.com/web-design/browsers/no-list-bullets-in-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Striping for Table Rows</title>
		<link>http://www.moonkatcreations.com/web-design/jquery/jquery-striping-for-table-rows/</link>
		<comments>http://www.moonkatcreations.com/web-design/jquery/jquery-striping-for-table-rows/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 20:05:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.moonkatcreations.com/?p=279</guid>
		<description><![CDATA[A simple script to select, and then add striping to table rows:
$(&#8216;tr:odd td&#8217;).css(&#8216;background&#8217;,'#yourcolor&#8217;);
]]></description>
			<content:encoded><![CDATA[<p>A simple script to select, and then add striping to table rows:</p>
<p>$(&#8216;tr:odd td&#8217;).css(&#8216;background&#8217;,'#yourcolor&#8217;);</p>
]]></content:encoded>
			<wfw:commentRss>http://www.moonkatcreations.com/web-design/jquery/jquery-striping-for-table-rows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The First Week</title>
		<link>http://www.moonkatcreations.com/my-take/doggy/the-first-week/</link>
		<comments>http://www.moonkatcreations.com/my-take/doggy/the-first-week/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 03:26:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[doggy]]></category>

		<guid isPermaLink="false">http://www.moonkatcreations.com/?p=275</guid>
		<description><![CDATA[This is a test, for now.
]]></description>
			<content:encoded><![CDATA[<p>This is a test, for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.moonkatcreations.com/my-take/doggy/the-first-week/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy Textarea Maxlength Script</title>
		<link>http://www.moonkatcreations.com/uncategorized/easy-textarea-maxlength-script/</link>
		<comments>http://www.moonkatcreations.com/uncategorized/easy-textarea-maxlength-script/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 18:39:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.moonkatcreations.com/?p=268</guid>
		<description><![CDATA[This is a very simple maxlength script, quickly and easily implemented.]]></description>
			<content:encoded><![CDATA[<p>This is a very simple maxlength script, quickly and easily implemented. The original is found at <a title="Link to Dynamic Drive Textarea Maxlength Script" href="http://www.dynamicdrive.com/dynamicindex16/maxlength.htm" target="_blank">http://www.dynamicdrive.com/dynamicindex16/maxlength.htm</a></p>
<p><code><br />
/***********************************************<br />
* Textarea Maxlength script- © Dynamic Drive (www.dynamicdrive.com)<br />
* This notice must stay intact for legal use.<br />
* Visit http://www.dynamicdrive.com/ for full source code<br />
***********************************************/</p>
<p>function ismaxlength(obj){<br />
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""<br />
if (obj.getAttribute &amp;&amp; obj.value.length&gt;mlength)<br />
obj.value=obj.value.substring(0,mlength)<br />
}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.moonkatcreations.com/uncategorized/easy-textarea-maxlength-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows XP Mode for Testing IE6 on Windows 7 Machine</title>
		<link>http://www.moonkatcreations.com/web-design/browsers/windows-xp-mode-for-testing-ie6-on-windows-7-machine/</link>
		<comments>http://www.moonkatcreations.com/web-design/browsers/windows-xp-mode-for-testing-ie6-on-windows-7-machine/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 18:40:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[browser bugs]]></category>
		<category><![CDATA[browser testing]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[internet explorer]]></category>

		<guid isPermaLink="false">http://www.moonkatcreations.com/?p=261</guid>
		<description><![CDATA[When I was researching ways to run IE6 for browser testing purposes on my Windows 7 machine I came across XP Mode.

I never thought I'd say this, but "Thanks Microsoft for this helpful development tool."]]></description>
			<content:encoded><![CDATA[<p>When I was researching ways to run IE6 for browser testing purposes on my Windows 7 machine (other than with IE Tester, which is buggy, or Multiple IE, which I don&#8217;t think even runs on Windows 7), I came across XP Mode.</p>
<p>It&#8217;s simple to install, and it comes preinstalled with IE6. You don&#8217;t even need a serial number for XP. Just follow the steps on the page (they&#8217;re surprisingly straightforward) and you&#8217;re golden. The only thing that was even slightly tricky was configuring BIOS if your hardware virtualization isn&#8217;t turned on, but I managed with no problems, and I never do any configuration.</p>
<p>I never thought I&#8217;d say this, but &#8220;Thanks Microsoft for this helpful development tool.&#8221;</p>
<p>Installation page: <a href="http://www.microsoft.com/windows/virtual-pc/download.aspx">http://www.microsoft.com/windows/virtual-pc/download.aspx</a></p>
<p>BIOS configuration instructions: <a href="http://www.microsoft.com/windows/virtual-pc/support/configure-bios.aspx">http://www.microsoft.com/windows/virtual-pc/support/configure-bios.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.moonkatcreations.com/web-design/browsers/windows-xp-mode-for-testing-ie6-on-windows-7-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Option Values from a Select</title>
		<link>http://www.moonkatcreations.com/web-design/jquery/get-option-values-from-a-select/</link>
		<comments>http://www.moonkatcreations.com/web-design/jquery/get-option-values-from-a-select/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 23:35:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.moonkatcreations.com/?p=255</guid>
		<description><![CDATA[This is an easy way to grab all the option values from any regular html select, and print them to your Firebug console as a comma separated list.]]></description>
			<content:encoded><![CDATA[<p>This is an easy way to grab all the option values from any regular html select, and print them to your Firebug console as a comma separated list. (I found this useful when I needed to grab the state names listed on a previous version of a company website.)</p>
<p><code><br />
var newArray = [];<br />
var list = $('#selectID').find('option');<br />
for(var i = 0; i &lt; list.length; i++) {<br />
newArray[i] = list[i].text;<br />
}<br />
console.log(newArray.join(", "));<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.moonkatcreations.com/web-design/jquery/get-option-values-from-a-select/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
