<?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>Website Design Peterborough, Jigowatt - Magento Web Design, UK &#187; Chris</title>
	<atom:link href="http://www.jigowatt.co.uk/author/chris/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jigowatt.co.uk</link>
	<description>Website Design Peterborough</description>
	<lastBuildDate>Wed, 25 Aug 2010 09:13:09 +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>Add Magento Category Links to your Footer Template</title>
		<link>http://www.jigowatt.co.uk/blog/add-magento-category-links-to-magento-footer-template</link>
		<comments>http://www.jigowatt.co.uk/blog/add-magento-category-links-to-magento-footer-template#comments</comments>
		<pubDate>Mon, 29 Mar 2010 14:56:24 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://jigowatt.co.uk/?p=884</guid>
		<description><![CDATA[A useful bit of code for those who want to start optimising their website towards visitors and importantly Google for great SEO. In your footer template file add the following code snippet where you want ...


Related posts:<ol><li><a href='http://www.jigowatt.co.uk/blog/display-wordpress-blog-posts-in-a-magento-page' rel='bookmark' title='Permanent Link: Display WordPress blog posts in a Magento page'>Display WordPress blog posts in a Magento page</a></li>
<li><a href='http://www.jigowatt.co.uk/blog/shopp-tutorial-only-display-top-level-categories' rel='bookmark' title='Permanent Link: Shopp tutorial; only display top level categories'>Shopp tutorial; only display top level categories</a></li>
<li><a href='http://www.jigowatt.co.uk/blog/ajax-contact-form-add-or-remove-custom-fields' rel='bookmark' title='Permanent Link: AJAX Contact Form; Add or Remove Custom Fields'>AJAX Contact Form; Add or Remove Custom Fields</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>A useful bit of code for those who want to start optimising their website towards visitors and importantly <a href="http://www.google.co.uk/search?hl=en&#038;q=website+design+peterborough" title="Google">Google</a> for great <a href="http://jigowatt.co.uk/services/other-services/" title-"Magento SEO Marketing">SEO</a>.</p>
<p>In your footer template file add the following code snippet where you want to display a list of your <strong>Magento</strong> categories.</p>
<p>app/design/frontend/default/your_theme/template/page/html/footer.phtml</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;ul&gt;<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$helper</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/category'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$helper</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getStoreCategories</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$_category</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> <br />
&nbsp; &nbsp; &lt;li&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/category'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setData</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getData</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getUrl</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; title=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$_category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$_category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/li&gt;<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endforeach</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&lt;/ul&gt;</div></td></tr></tbody></table></div>
<p>This modification is <a href="http://www.magentocommerce.com/download/noregister?ref=jigowatt" target="_blank" title="Magento 1.4">Magento 1.4 compatible.</p>


<p>Related posts:<ol><li><a href='http://www.jigowatt.co.uk/blog/display-wordpress-blog-posts-in-a-magento-page' rel='bookmark' title='Permanent Link: Display WordPress blog posts in a Magento page'>Display WordPress blog posts in a Magento page</a></li>
<li><a href='http://www.jigowatt.co.uk/blog/shopp-tutorial-only-display-top-level-categories' rel='bookmark' title='Permanent Link: Shopp tutorial; only display top level categories'>Shopp tutorial; only display top level categories</a></li>
<li><a href='http://www.jigowatt.co.uk/blog/ajax-contact-form-add-or-remove-custom-fields' rel='bookmark' title='Permanent Link: AJAX Contact Form; Add or Remove Custom Fields'>AJAX Contact Form; Add or Remove Custom Fields</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jigowatt.co.uk/blog/add-magento-category-links-to-magento-footer-template/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AJAX Contact Form; Add / Validate Checkboxes</title>
		<link>http://www.jigowatt.co.uk/blog/general/ajax-contact-form-add-checkboxes</link>
		<comments>http://www.jigowatt.co.uk/blog/general/ajax-contact-form-add-checkboxes#comments</comments>
		<pubDate>Wed, 17 Feb 2010 23:12:08 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[CodeCanyon]]></category>
		<category><![CDATA[Envato]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://jigowatt.co.uk/?p=857</guid>
		<description><![CDATA[For all our AJAX Contact Form customers on CodeCanyon, here&#8217;s a quick tutorial on how to add / validate checkboxes. As some have found, the standard Javascript .val() request does not work with checkboxes, for ...


Related posts:<ol><li><a href='http://www.jigowatt.co.uk/blog/ajax-contact-form-add-or-remove-custom-fields' rel='bookmark' title='Permanent Link: AJAX Contact Form; Add or Remove Custom Fields'>AJAX Contact Form; Add or Remove Custom Fields</a></li>
<li><a href='http://www.jigowatt.co.uk/blog/shopp-tutorial-only-display-top-level-categories' rel='bookmark' title='Permanent Link: Shopp tutorial; only display top level categories'>Shopp tutorial; only display top level categories</a></li>
<li><a href='http://www.jigowatt.co.uk/blog/change-the-first-day-on-our-php-event-calendar-script' rel='bookmark' title='Permanent Link: Change the first day on our PHP Event Calendar Script'>Change the first day on our PHP Event Calendar Script</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>For all our <a href="http://codecanyon.net/item/ajax-contact-form/50846?ref=jigowatt" alt="Jigowatt AJAX Contact Form" />AJAX Contact Form</a> customers on <a href="http://codecanyon.net/user/jigowatt?ref=jigowatt" alt="CodeCanyon Jigowatt" />CodeCanyon</a>, here&#8217;s a quick tutorial on how to add / validate checkboxes.</p>
<p>As some have found, the standard Javascript .val() request does not work with checkboxes, for this reason we&#8217;ll need to add a quick function to our Javascript handling file, here&#8217;s one we made earlier&#8230; add this at line 14 of jquery.jigowatt.js</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">function</span> getCheckedValue<span style="color: #009900;">&#40;</span>field<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; field <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#'</span> <span style="color: #339933;">+</span> field<span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; txt <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;&quot;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> field.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>field<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">checked</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> txt <span style="color: #339933;">=</span> field<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">value</span> <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>txt <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #3366CC;">&quot;0&quot;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #3366CC;">&quot;1&quot;</span> <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>Using this function will return a &#8217;1&#8242; value if the checkbox is ticked and a &#8217;0&#8242; if it isn&#8217;t, this will make it very easy for you to validate in the contact.php file.</p>
<p>Note: If for any reason you need the checkbox&#8217;s value returned for validation you need to replace</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>txt <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #3366CC;">&quot;0&quot;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #3366CC;">&quot;1&quot;</span> <span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>with..</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>txt <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #3366CC;">&quot;0&quot;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000066; font-weight: bold;">return</span> txt <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; &quot;</span> <span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>Now you just need to add the value to the post as normal.. aprox line 30 with the above function inserted</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">checkbox<span style="color: #339933;">:</span> &nbsp;getCheckedValue<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'checkbox'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span></div></td></tr></tbody></table></div>
<p>For your reference, our HTML for the Checkbox looks like this..</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;">br</span></a> <span style="color: #66cc66;">/</span>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">input</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;checkbox&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;checkbox&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;checkbox&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Milk&quot;</span>&gt;</span> Milk<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;">br</span></a> <span style="color: #66cc66;">/</span>&gt;</span></div></td></tr></tbody></table></div>
<p>And that&#8217;s it on our part, now with some validation you&#8217;ll be well on your way to passing checkbox variables.</p>


<p>Related posts:<ol><li><a href='http://www.jigowatt.co.uk/blog/ajax-contact-form-add-or-remove-custom-fields' rel='bookmark' title='Permanent Link: AJAX Contact Form; Add or Remove Custom Fields'>AJAX Contact Form; Add or Remove Custom Fields</a></li>
<li><a href='http://www.jigowatt.co.uk/blog/shopp-tutorial-only-display-top-level-categories' rel='bookmark' title='Permanent Link: Shopp tutorial; only display top level categories'>Shopp tutorial; only display top level categories</a></li>
<li><a href='http://www.jigowatt.co.uk/blog/change-the-first-day-on-our-php-event-calendar-script' rel='bookmark' title='Permanent Link: Change the first day on our PHP Event Calendar Script'>Change the first day on our PHP Event Calendar Script</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jigowatt.co.uk/blog/general/ajax-contact-form-add-checkboxes/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>AJAX Contact Form; Add or Remove Custom Fields</title>
		<link>http://www.jigowatt.co.uk/blog/ajax-contact-form-add-or-remove-custom-fields</link>
		<comments>http://www.jigowatt.co.uk/blog/ajax-contact-form-add-or-remove-custom-fields#comments</comments>
		<pubDate>Thu, 14 Jan 2010 13:21:56 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[ThemeForest]]></category>

		<guid isPermaLink="false">http://jigowatt.co.uk/?p=729</guid>
		<description><![CDATA[In a burst of WordPress fever we decided to write another blog post to help all of our ThemeForest / CodeCanyon customers. Alongside our ThemeForest and CodeCanyon success comes Customer Support. We get a lot ...


Related posts:<ol><li><a href='http://www.jigowatt.co.uk/blog/general/ajax-contact-form-add-checkboxes' rel='bookmark' title='Permanent Link: AJAX Contact Form; Add / Validate Checkboxes'>AJAX Contact Form; Add / Validate Checkboxes</a></li>
<li><a href='http://www.jigowatt.co.uk/blog/change-the-first-day-on-our-php-event-calendar-script' rel='bookmark' title='Permanent Link: Change the first day on our PHP Event Calendar Script'>Change the first day on our PHP Event Calendar Script</a></li>
<li><a href='http://www.jigowatt.co.uk/blog/wordpress-list-subpages-including-their-post-tumbnails' rel='bookmark' title='Permanent Link: WordPress &#8211; List subpages including their post tumbnails'>WordPress &#8211; List subpages including their post tumbnails</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In a burst of <a href="http://jigowatt.co.uk/wordpress/" alt="Wordpress Design">WordPress</a> fever we decided to write another blog post to help all of our ThemeForest / CodeCanyon customers.</p>
<p>Alongside our <a href="http://jigowatt.co.uk/blog/5-later-a-themeforest-product-update/">ThemeForest</a> and <a href="http://codecanyon.net/">CodeCanyon</a> success comes Customer Support. We get a lot of questions from users needing a point in the right direction so we thought we&#8217;d make it easier for us both and explain how to add custom fields to our ever popular <a href="http://codecanyon.net/item/ajax-contact-form/50846" alt="AJAX Contact Form">AJAX Contact Form</a>.</p>
<h2>Add a Custom Field Tutorial</h2>
<p>In this example we&#8217;re going to add a new simple text field (Your Height) which we want all users to fill in (a required, validated field).</p>
<p><strong>Step One</strong></p>
<p>Firstly, backup backup and backup again, once you&#8217;ve done that we need to edit our HTML to include our new field, we&#8217;re going to add this one under the &#8216;Your Name&#8217; field.</p>
<p>In the included index.html file find the following lines..</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">input</span></a> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;name&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;name&quot;</span> <span style="color: #000066;">size</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;30&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></div></td></tr></tbody></table></div>
<p>Below it we&#8217;re going to insert our new text field..</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;">br</span></a> <span style="color: #66cc66;">/</span>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">label</span></a> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #000066;">height</span> <span style="color: #000066;">accesskey</span><span style="color: #66cc66;">=</span>H&gt;&lt;<a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;required&quot;</span>&gt;</span>*<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">span</span></a>&gt;</span> Your Height (cm)<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/label.html"><span style="color: #000000; font-weight: bold;">label</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">input</span></a> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;height&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;height&quot;</span> <span style="color: #000066;">size</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;30&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></div></td></tr></tbody></table></div>
<p>Now save and close index.html, that&#8217;s the first step out of the way.</p>
<p><strong>Step Two</strong></p>
<p>This is an often overlooked though most important step of this tutorial.</p>
<p>We&#8217;re going to edit the Javascript handler (the AJAX part) of the contact form.</p>
<p>In the js/jquery.jigowatt.js file find the following line..</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000066;">name</span><span style="color: #339933;">:</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#name'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span></div></td></tr></tbody></table></div>
<p>For this example add the following code immediately below.. (please note the comma , after the line &#8211; this is important)</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">height<span style="color: #339933;">:</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#height'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span></div></td></tr></tbody></table></div>
<p>Once done the section of the code should look like this..</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000066;">name</span><span style="color: #339933;">:</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#name'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
height<span style="color: #339933;">:</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#height'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
email<span style="color: #339933;">:</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#email'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span></div></td></tr></tbody></table></div>
<p>Save and close jquery.jigowatt.js, that&#8217;s the second step done!</p>
<p><strong>Step Three</strong></p>
<p>The third and final step! We&#8217;re going to add our new field to the PHP form handler. This will validate it&#8217;s contents and put it into the e-mail.</p>
<p>In contact.php find the following line (aprox line 5)</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$name</span> &nbsp; &nbsp; <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>Add the following code immediately below..</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$height</span> &nbsp; &nbsp; <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'height'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>In contact.php find the following lines (aprox line 13)</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div class=&quot;error_message&quot;&gt;Attention! You must enter your name.&lt;/div&gt;'</span><span style="color: #339933;">;</span><br />
<a href="http://www.php.net/exit"><span style="color: #990000;">exit</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>Add the following code immediately below..</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$height</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div class=&quot;error_message&quot;&gt;Attention! Please enter a your height.&lt;/div&gt;'</span><span style="color: #339933;">;</span><br />
<a href="http://www.php.net/exit"><span style="color: #990000;">exit</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><a href="http://www.php.net/is_numeric"><span style="color: #990000;">is_numeric</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$height</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div class=&quot;error_message&quot;&gt;Attention! Your height can only contain digits.&lt;/div&gt;'</span><span style="color: #339933;">;</span><br />
<a href="http://www.php.net/exit"><span style="color: #990000;">exit</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>This piece of code checks that the user has firstly entered a value, and the further checks that they have only entered a numeric value. The only variables within this are $height and the error message you want to display if it finds a discrepancy.</p>
<p>And finally, place our validated variable into the e-mail.</p>
<p>Find the following (aprox line 70)</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">You have been contacted by <span style="color: #000088;">$name</span> with regards to <span style="color: #000088;">$subject</span></div></td></tr></tbody></table></div>
<p>Replace this with the following (notice the sentence change to include our new $height variable)</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">You have been contacted by <span style="color: #000088;">$name</span> who is <span style="color: #000088;">$height</span> cm tall with regards to <span style="color: #000088;">$subject</span></div></td></tr></tbody></table></div>
<p>And that&#8217;s it, you&#8217;ve just added a new field to your <a href="http://codecanyon.net/item/ajax-contact-form/50846" alt="AJAX Contact Form">AJAX Contact Form</a>! Upload the changed files and give it a test. Any questions, feedback or suggestions please use our comments box below.</p>


<p>Related posts:<ol><li><a href='http://www.jigowatt.co.uk/blog/general/ajax-contact-form-add-checkboxes' rel='bookmark' title='Permanent Link: AJAX Contact Form; Add / Validate Checkboxes'>AJAX Contact Form; Add / Validate Checkboxes</a></li>
<li><a href='http://www.jigowatt.co.uk/blog/change-the-first-day-on-our-php-event-calendar-script' rel='bookmark' title='Permanent Link: Change the first day on our PHP Event Calendar Script'>Change the first day on our PHP Event Calendar Script</a></li>
<li><a href='http://www.jigowatt.co.uk/blog/wordpress-list-subpages-including-their-post-tumbnails' rel='bookmark' title='Permanent Link: WordPress &#8211; List subpages including their post tumbnails'>WordPress &#8211; List subpages including their post tumbnails</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jigowatt.co.uk/blog/ajax-contact-form-add-or-remove-custom-fields/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Introducing our Acronis / RAID Web Server</title>
		<link>http://www.jigowatt.co.uk/blog/introducing-our-acronis-raid-server</link>
		<comments>http://www.jigowatt.co.uk/blog/introducing-our-acronis-raid-server#comments</comments>
		<pubDate>Wed, 13 Jan 2010 13:38:50 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://jigowatt.co.uk/?p=710</guid>
		<description><![CDATA[Despite being busier than ever at Jigowatt HQ we thought we&#8217;d sneak in some time to introduce our new Acronis / RAID server setup (we don&#8217;t expect that to mean anything until you&#8217;ve read a ...


Related posts:<ol><li><a href='http://www.jigowatt.co.uk/blog/introducing-nanowatt' rel='bookmark' title='Permanent Link: Introducing Nanowatt'>Introducing Nanowatt</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Despite being busier than ever at Jigowatt HQ we thought we&#8217;d sneak in some time to introduce our new Acronis / RAID server setup (we don&#8217;t expect that to mean anything until you&#8217;ve read a little more).</p>
<p>We&#8217;ve added yet another dedicated server to our already gluttenous collection; what better time to let you all know the workings, secrets and latest new features of our server range.</p>
<h2>Acronis</h2>
<p>Acronis is a comprehensive backup solution which also minimises downtime to meet our strict Recovery Time Objectives (RTOs).</p>
<p><strong>But what does it do you may ask..?</strong></p>
<p>It allows us to operate automated incremental nightly backups of new/modified files and data across all of our hosted websites. With each and every-one of our dedicated servers running Acronis we can now offer a further outstanding <a href="/services/hosting/" alt="UK Web Hosting Service">hosting service</a> to all our clients, giving peace of mind and hands-free operation to all.</p>
<p>With that said, we thought we&#8217;d go that one step further, we&#8217;ve customised Acronis to run a weekly server-wide backups too! This means we not only have previous days workings and changes, we have entire week backups which are securely stored off-site.</p>
<p><strong>How does this benefit the client?</strong></p>
<p>Ever lost a picture, removed an order accidentally or even deleted a page? In the past this may have caused headaches and disruption, with Acronis incremental backups you need not worry, individual files through to entire databases can be recovered and restored quickly and easily.</p>
<h2>RAID</h2>
<p>RAID is a technology that allows computer users to achieve high levels of storage reliability via the technique of arranging the devices into arrays for redundancy.</p>
<p>In a slightly less tech-savvy explanation, having a RAID configured server means that hardware reliability is no longer an area of worry, as with everything, computer parts have a life expectancy, if you&#8217;ve ever had a Hard Drive fail you&#8217;ll already know this can be detrimental to every-day business and can sometimes lead to permanent data loss.</p>
<p>For example, RAID arranges files in such a way that if 1 out of 2 Hard Drives fails, data stored on the working Hard Drive can be used to restore the other quickly and easily vice-versa. This simply means, no data is ever at the mercy of hardware failure.</p>
<p>All of our <a href="/services/hosting/" alt="UK Dedicated Servers">dedicated servers</a> are configured with RAID as standard.</p>


<p>Related posts:<ol><li><a href='http://www.jigowatt.co.uk/blog/introducing-nanowatt' rel='bookmark' title='Permanent Link: Introducing Nanowatt'>Introducing Nanowatt</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jigowatt.co.uk/blog/introducing-our-acronis-raid-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
