<?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>dawnerd &#187; open source</title>
	<atom:link href="http://dawnerd.com/tag/open-source/feed/" rel="self" type="application/rss+xml" />
	<link>http://dawnerd.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Fri, 13 Aug 2010 18:20:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Open Source jQuery Plugin &#8211; AjaxPages</title>
		<link>http://dawnerd.com/post/83_open-source-jquery-plugin-ajaxpages/</link>
		<comments>http://dawnerd.com/post/83_open-source-jquery-plugin-ajaxpages/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 18:55:28 +0000</pubDate>
		<dc:creator>Troy Whiteley</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[interface design]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[user interface]]></category>

		<guid isPermaLink="false">http://dawnerd.com/?p=83</guid>
		<description><![CDATA[AjaxPages allows you to serve up full pages completely with ajax. This is very useful if you want to build a site that has a music player running across page loads, but don&#8217;t want to use frames. This technique can &#8230; <a href="http://dawnerd.com/post/83_open-source-jquery-plugin-ajaxpages/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/p/jquery-ajaxpages/">AjaxPages</a> allows you to serve up full pages completely with ajax. This is very useful if you want to build a site that has a music player running across page loads, but don&#8217;t want to use frames. This technique can be found at <a href="http://thesixtyone.com">TheSixtyOne</a>.</p>
<p>All internal links should be in hash format. Example: instead of linking to <code>filename.html</code>, you would link to <code>#/filename.html</code>.</p>
<p>If you have clean urls on, the hash is almost not noticeable. Example: <code>domain.com/#/profile/username</code></p>
<p>To get started with AjaxPages, get the files from the <a href="http://code.google.com/p/jquery-ajaxpages/source/browse/#svn/trunk">Google Code trunk</a>. Example files are included. That should be enough to get you started. The plugin is very lightweight and fairly simple so it should not give you any problems.</p>
<p>If you need help, please leave a comment and I will personally help you out.</p>
]]></content:encoded>
			<wfw:commentRss>http://dawnerd.com/post/83_open-source-jquery-plugin-ajaxpages/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Open Source jQuery Plugin &#8211; Custom Radio and Checkboxes</title>
		<link>http://dawnerd.com/post/62_open-source-jquery-plugin-custom-radio-and-checkboxes/</link>
		<comments>http://dawnerd.com/post/62_open-source-jquery-plugin-custom-radio-and-checkboxes/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 07:15:40 +0000</pubDate>
		<dc:creator>Troy Whiteley</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[user interface]]></category>

		<guid isPermaLink="false">http://dawnerd.com/?p=62</guid>
		<description><![CDATA[I got fed up with the numerous amounts of plugins that handle custom checkboxes and radio inputs that I decided to create my own. Typically, the plugin will create html for you in which you an style. But you also &#8230; <a href="http://dawnerd.com/post/62_open-source-jquery-plugin-custom-radio-and-checkboxes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I got fed up with the numerous amounts of plugins that handle custom checkboxes and radio inputs that I decided to create my own. Typically, the plugin will create html for you in which you an style. But you also have to pass in url&#8217;s for images that will be used for the various states.</p>
<p>The plugin I created, <a href="http://code.google.com/p/jquery-bltcheckbox/">bltcheckbox</a>, allows you to use any html and css. The only options you pass to the plugin are whether it&#8217;s a checkbox, or a radio input.</p>
<p>For code samples and documentation, please check out the code code page <a href="http://code.google.com/p/jquery-bltcheckbox/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dawnerd.com/post/62_open-source-jquery-plugin-custom-radio-and-checkboxes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Source PHP Data Validation Class</title>
		<link>http://dawnerd.com/post/26_open-source-php-data-validation-class/</link>
		<comments>http://dawnerd.com/post/26_open-source-php-data-validation-class/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 01:32:55 +0000</pubDate>
		<dc:creator>Troy Whiteley</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[data validation]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://dawnerd.com/?p=26</guid>
		<description><![CDATA[I have created a PHP5 class that handles all POST and GET variables. It performs almost all of the validations functions you could need. In addition, it makes accessing the variables very convenient. Download here. Version 1.0 How To use: &#8230; <a href="http://dawnerd.com/post/26_open-source-php-data-validation-class/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have created a PHP5 class that handles all POST and GET variables. It performs almost all of the validations functions you could need. In addition, it makes accessing the variables very convenient.<span id="more-26"></span><br />
<a href="http://labs.dawnerd.com/validation/validation-class.zip"><br />
Download here.</a> Version 1.0</p>
<p><strong>How To use:</strong><br />
First, include the class and initiate it:</p>
<pre>
<code>
<?php
include("validation.class.php");
$validation = new Validation;
?>
</code>
</pre>
<p><em>Optionally, you can use new Validation(false) to not parse all input data through the xss filter. This is not recommended.</em></p>
<p>Available functions are:</p>
<ul>
<li><code>xss($string)</code></li>
<li><code>email($string)</code></li>
<li><code>phone($string)</code></li>
<li><code>url($string)</code></li>
<li><code>db_prep($string)</code></li>
</ul>
<p>All of the above functions return a boolean value with the exception of <code>xss()</code> and <code>db_prep()</code>. Those two return a modified version of <code>$string</code>.</p>
<p>Here is an example of form validation:</p>
<pre>
<code>
<?php
$db_user = "";
$db_pass = "";
$db_serv = "";
$db_name = "";
include("../database/database.class.php");
$db = new Database($db_user,$db_pass,$db_serv,true);
if(!$db){die($db->getErrorMessage());}

include("validation.class.php");
$validation = new Validation;

echo "SELECT * FROM users WHERE user='".$validation->db_prep($validation->database_input)."'";
echo "";

if($validation->email($validation->email)) echo "valid email";
else echo "not valid email";
echo "";

if($validation->phone($validation->phone)) echo "valid phone";
else echo "not valid phone";
echo "";

if($validation->url($validation->url)) echo "valid url";
else echo "not valid url";
echo "";
?>
<form action="test.php" method="post">

database input:
<input type="text" name="database_input" id="database_input" value="<?=$validation->database_input;?>" />

email:
<input type="text" name="email" id="email" value="<?=$validation->email;?>" />

phone:
<input type="text" name="phone" id="phone" value="<?=$validation->phone;?>" />

url:
<input type="text" name="url" id="url" value="<?=$validation->url;?>" />
<input type="submit" name="test" id="dtest" value="Test" />
</form>

</code>
</pre>
<p>A demo of the above test can be <a href="http://labs.dawnerd.com/validation/test.php">found here</a>.</p>
<p>As you can see from the example above, instead of calling <code>$_GET['username']</code>, you can now call <code>$validation->username</code> without worrying about the data being &#8216;dirty&#8217;.</p>
<p>If you need help using this class, post a comment and I will gladly help you out. Also remember that this class is licensed under the <a href="http://dawnerd.com/license/">Buy Me Dew License</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dawnerd.com/post/26_open-source-php-data-validation-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
