<?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>JoePettersson.com</title>
	<atom:link href="http://www.joepettersson.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joepettersson.com</link>
	<description>I&#039;m a Creative Director and front end developer who blogs here about design, development, open standards and the web. I also enjoy pogs.</description>
	<lastBuildDate>Tue, 03 May 2011 13:40:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>A jQuery powered HTML5 navigation menu</title>
		<link>http://www.joepettersson.com/jquery-powered-navigation-menu/</link>
		<comments>http://www.joepettersson.com/jquery-powered-navigation-menu/#comments</comments>
		<pubDate>Sat, 30 Apr 2011 17:46:59 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Graphic Elements]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Templates]]></category>
		<category><![CDATA[UI/UX]]></category>

		<guid isPermaLink="false">http://www.joepettersson.com/?p=523</guid>
		<description><![CDATA[I was recently asked to knock-up a semantically simple (but elegant) navigation bar for a new open-source project I&#8217;ve become involved with (more on that soon!). Having done so with a reasonable amount of success, I thought I would also &#8230; <a href="http://www.joepettersson.com/jquery-powered-navigation-menu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was recently asked to knock-up a semantically simple (but elegant) navigation bar for a new open-source project I&#8217;ve become involved with (more on that soon!). Having done so with a reasonable amount of success, I thought I would also share it here for everyone else to use as well!</p>
<p><span id="more-523"></span></p>
<p>It&#8217;s an absolute snap to implement, with the addition of one simple class to the top-level HTML5 nav element a fully styled and accessible navigation menu will be produced. The menu also utilises the jQuery JavaScript library for it&#8217;s animation and the addition of some unobtrusive presentational elements.</p>
<p>There&#8217;s more detail on how to use the menu contained on the <a href="http://www.joepettersson.com/demo/jquery-powered-navigation-bar/">demo page</a>. But in essence, it is as simple as creating a series of nested unordered lists. No more than that.</p>
<p>As always, if you have any questions or problems please leave a response here and I&#8217;ll be happy to help. You can also <a href="https://github.com/JoePettersson/jQuery-powered-HTML5-navigation-menu">fork this project on github</a> if you want to tinker with it or make some improvements.</p>
<p>It&#8217;s been tested in all modern browsers and functions perfectly. It does degrade <em>relatively</em> nicely in IE7, but don&#8217;t expect unicorns and rainbows. No IE6 support, because frankly: fuck IE6.</p>
<p><strong>P.S.</strong> It&#8217;s available in four snazzy colours!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joepettersson.com/jquery-powered-navigation-menu/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Snippets in Notepad++</title>
		<link>http://www.joepettersson.com/snippets-in-notepad-plus-plus/</link>
		<comments>http://www.joepettersson.com/snippets-in-notepad-plus-plus/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 10:30:47 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[General Dev]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.joepettersson.com/?p=513</guid>
		<description><![CDATA[I&#8217;m a massive fan of Notepad++, the lightweight Windows based text editor, it has a tiny footprint but packs enough features to make it my go-to Windows text editor. Up until quite recently however, I&#8217;d been missing snippets, but not &#8230; <a href="http://www.joepettersson.com/snippets-in-notepad-plus-plus/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a massive fan of <a href="http://notepad-plus-plus.org/">Notepad++</a>, the lightweight Windows based text editor, it has a tiny footprint but packs enough features to make it my go-to Windows text editor. Up until quite recently however, I&#8217;d been missing snippets, but not any more.</p>
<p><span id="more-513"></span></p>
<p>I&#8217;ve been using Notepad++ for a few years now, but had always been frustrated by it&#8217;s productivity stifling lack of a good snippet plugin; until I discovered <a href="http://sourceforge.net/projects/quicktext/">QuickText </a>. This awesome little plugin by <a href="http://blog.joaomoreno.com/quicktext/">João Moreno</a> perfectly and elegantly fills the hole I had been feeling for so long.</p>
<p>It&#8217;s very simple to use: simply enter a keyword; hit <strong>Ctrl+Enter</strong> and it automagically expands into your predefined text snippet. You can obviously add as many snippets as you&#8217;d like via the Options panel (Plugins > QuickText > Options&#8230;).</p>
<p>My only quibble with this little gem is the way it uses the <strong>$</strong> character to denote initial cursor position. Once your snippet has been added to your document the cursor is placed at the first <strong>$</strong> character in your snippet. Fair enough you might say, that&#8217;s a nice way of jumping to the relevant portion of a function, but it results in a problem: JavaScript (among others) uses this character in several important ways, so QuickText removing them all from your snippet (as it does) means a not inconsiderable pain in the ass adding them again.</p>
<p><strong>Note:</strong> Myself and several other people have had initial problems getting QuickText to actually replace the keywords with the snippet (Ctrl+Enter did nothing). The problem is that a recent Notepad++ update also uses that keyboard shortcut, so there is a conflict which needs to be resolved before QuickText will work. What you do is go<strong> Settings > Shortcut mapper</strong>, then click on the <strong>Plugin Commands</strong> tab and scroll to near the bottom. You&#8217;re looking for &#8216;Replace Tag&#8217;, once you&#8217;ve found it define a new shortcut (I use Alt+Enter) and restart Notepad++. Everything should now be fully functional.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joepettersson.com/snippets-in-notepad-plus-plus/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A set of simple CSS3 buttons</title>
		<link>http://www.joepettersson.com/css3-buttons/</link>
		<comments>http://www.joepettersson.com/css3-buttons/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 09:52:07 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Front End/UI]]></category>
		<category><![CDATA[Graphic Elements]]></category>
		<category><![CDATA[Templates]]></category>
		<category><![CDATA[UI/UX]]></category>

		<guid isPermaLink="false">http://www.joepettersson.com/?p=507</guid>
		<description><![CDATA[Having searched around for a while, looking for a set of CSS3 &#8216;buttons&#8217; and not finding anything exactly right for my needs, I decided to create a set from scratch. Being the generous kind of bloke I am, I though &#8230; <a href="http://www.joepettersson.com/css3-buttons/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Having searched around for a while, looking for a set of CSS3 &#8216;buttons&#8217; and not finding anything exactly right for my needs, I decided to create a set from scratch. Being the generous kind of bloke I am, I though that I&#8217;d share them here in case any other frustrated web workers are in desperate need of a button fix.</p>
<p><span id="more-507"></span></p>
<p>As you probably already know CSS3 support isn&#8217;t exactly ubiquitous at this stage (especially for things like linear gradients I used here) so these buttons are going to degrade in older browsers (I&#8217;m looking at you IE). Whether that stops you putting them into production is obviously up to you, they look <em>okay</em> when degraded (and I could probably have made them look better if I had a need to) but for the purpose they were created for there was really no need.</p>
<p>What this little exercise did throw up however is exactly how poor the support for CSS3 is in IE9. How Microsoft can justify their attempt to develop a &#8216;standards compliant&#8217; browser and do it so poorly is beyond my understanding.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joepettersson.com/css3-buttons/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The Client Questionaire</title>
		<link>http://www.joepettersson.com/the-client-questionaire/</link>
		<comments>http://www.joepettersson.com/the-client-questionaire/#comments</comments>
		<pubDate>Thu, 20 Jan 2011 11:46:45 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Templates]]></category>

		<guid isPermaLink="false">http://www.joepettersson.com/?p=396</guid>
		<description><![CDATA[Getting the most out of that first client meeting is incredibly important. Finding and isolating the core issues quickly can mean a final product that meets and exceeds all of a clients expectations. In this post, I have included a &#8230; <a href="http://www.joepettersson.com/the-client-questionaire/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Getting the most out of that first client meeting is incredibly important. Finding and isolating the core issues quickly can mean a final product that meets and exceeds all of a clients expectations. In this post, I have included a great primer of a client questionnaire; covering lots of ground around the logistical and creative direction a project should take.</p>
<p><span id="more-396"></span></p>
<p>So here it is, version one of the <a href="http://www.joepettersson.com/client-questionnaire/">Client Questionaire</a>. If you have any suggestions or questions about it, I&#8217;m happy to help.</p>
<p>Also included is a <a href="http://www.joepettersson.com/download/client-questionnaire.zip">downloadable and printable HTML5 powered version</a>, which can use used and styled as you should choose. It being based on the kick ass <a href="http://html5boilerplate.com/">HTML5 Boilerplate</a> by Paul Irish et al.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joepettersson.com/the-client-questionaire/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quick links: &#8216;Multicolr&#8217; image search and Git Immersion</title>
		<link>http://www.joepettersson.com/quick-links-image-search-and-git-immersion/</link>
		<comments>http://www.joepettersson.com/quick-links-image-search-and-git-immersion/#comments</comments>
		<pubDate>Mon, 17 Jan 2011 14:32:28 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">http://www.joepettersson.com/?p=386</guid>
		<description><![CDATA[Couple of really great quick links I&#8217;m sharing today: one&#8217;s a really cool tool that can help you find images based on a certain colour palette; the other&#8217;s a great beginners tutorial for the Git version control system. &#8216;Multicolr&#8217; image &#8230; <a href="http://www.joepettersson.com/quick-links-image-search-and-git-immersion/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Couple of really great quick links I&#8217;m sharing today: one&#8217;s a really cool tool that can help you find images based on a certain colour palette; the other&#8217;s a great beginners tutorial for the Git version control system.</p>
<p><span id="more-386"></span></p>
<h3 style="margin-bottom: 5px;"><a href="http://labs.ideeinc.com/multicolr">&#8216;Multicolr&#8217; image search via Idée Inc.</a></h3>
<p>The great tool from the creators of the indispensable <a href="http://www.tineye.com/">Tineye</a>, is a prototype tool that allows you to search Flickr for photos based on a user selected set of colours. Unlike a lot of these tools it seems to work really well, as it&#8217;s based on their great Piximilar image search technology (that also powers Tineye).</p>
<h3 style="margin-bottom: 5px;"><a href="http://library.edgecase.com/git_immersion/index.html">Git Immersion from EdgeCase</a></h3>
<p>This great introduction to the Git version control system from Edgecase is a great introduction to what some people can find a really intimidating tool. It&#8217;s lucidly written and really straightforward, I really recommend it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joepettersson.com/quick-links-image-search-and-git-immersion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A simple jQuery powered image slider</title>
		<link>http://www.joepettersson.com/a-simple-jquery-image-slider/</link>
		<comments>http://www.joepettersson.com/a-simple-jquery-image-slider/#comments</comments>
		<pubDate>Fri, 14 Jan 2011 13:43:42 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Front End/UI]]></category>
		<category><![CDATA[Graphic Elements]]></category>
		<category><![CDATA[Templates]]></category>
		<category><![CDATA[UI/UX]]></category>

		<guid isPermaLink="false">http://www.joepettersson.com/?p=370</guid>
		<description><![CDATA[This is another quick implementation of one of Orman Clark&#8217;s designs from Premium Pixels. As with the last previous slider I shared, this is based on malsup&#8217;s awesome Cycle jQuery plugin. Considering the apparent complexity of Orman&#8217;s design, this implementation &#8230; <a href="http://www.joepettersson.com/a-simple-jquery-image-slider/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is another quick implementation of one of <a href="http://www.ormanclark.com/">Orman Clark&#8217;s</a> designs from <a href="http://www.premiumpixels.com/clean-simple-image-slider-psd/">Premium Pixels</a>. As with the last <a href="http://www.joepettersson.com/a-simple-slider/">previous slider</a> I shared, this is based on malsup&#8217;s awesome <a href="http://jquery.malsup.com/cycle/">Cycle jQuery plugin</a>.</p>
<p><span id="more-370"></span></p>
<p>Considering the apparent complexity of Orman&#8217;s design, this implementation came out <em>relatively</em> light-weight; I used sprites for the nav links and pager and we&#8217;re obviously using Google&#8217;s CDN to serve jQuery.</p>
<p>It&#8217;s been manually tested in all modern browsers (although it&#8217;s kinda borked in IE6, but frankly I stopped caring about IE6 quite a while ago now). But if you run unto any problems let me know in the comments and I&#8217;m happy to help.</p>
<p>At the following links you can <a href="http://www.joepettersson.com/demo/simple-image-slider/">find the demo</a>, and the <a href="http://www.joepettersson.com/download/simple-image-slider.zip">download link</a>.</p>
<p>As with all my freebies, it&#8217;s distributed under the <a href="http://creativecommons.org/licenses/by/3.0/" target="_blank">Creative Commons Attribution 3.0 Unported License</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joepettersson.com/a-simple-jquery-image-slider/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Why the &#8216;outline&#8217; CSS property is so important</title>
		<link>http://www.joepettersson.com/why-the-outline-css-property-is-so-important/</link>
		<comments>http://www.joepettersson.com/why-the-outline-css-property-is-so-important/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 11:05:15 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Front End/UI]]></category>
		<category><![CDATA[Graphic Elements]]></category>

		<guid isPermaLink="false">http://www.joepettersson.com/?p=359</guid>
		<description><![CDATA[There are a lot of designers and developers who (for whatever reason) choose to remove any styling from the outline property that highlights focused anchors. This is a short post about why you shouldn&#8217;t do it, or if you really &#8230; <a href="http://www.joepettersson.com/why-the-outline-css-property-is-so-important/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There are a lot of designers and developers who (for whatever reason) choose to remove any styling from the outline property that highlights focused anchors. This is a short post about why you shouldn&#8217;t do it, or if you really need to; how you can make it look a little better than browser default outlines.</p>
<p><span id="more-359"></span></p>
<p>In short, removing any style to focus&#8217;d elements is <em>really</em> bad when it comes to the accessibility of your pages. People who can&#8217;t use conventional methods of navigating pages (like a mouse) are prone to using the tab key navigate links on a page, removing the main method of determining which link that currently has focus is therefore obviously not a good idea.</p>
<p>If we look at the <a href="http://www.w3.org/TR/2008/REC-WCAG20-20081211/#navigation-mechanisms-focus-visible">Web Content Accessibility Guidelines</a> (as published by W3C) we can see that it includes a relevant passage about the focus property:</p>
<blockquote><p><strong>2.4.7 Focus Visible:</strong> Any keyboard operable user interface has a mode of operation where the keyboard focus indicator is visible. (Level AA)</p></blockquote>
<p>Now, there are a lot of people who respond to being told this with a resounding: &#8216;BUT IT LOOKS SO BAAD!&#8217;. The truth is, in it&#8217;s default state in most browsers they&#8217;re right. But that doesn&#8217;t mean we can&#8217;t style it ourselves with some simple CSS.</p>
<p>If you <a href="http://www.joepettersson.com/demo/the-outline-property/">take a look at demo</a>, you can see a couple of different methods of using the <span class="cour">:focus</span> property to help the accessibility of your pages without a detrimental effect on your design.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joepettersson.com/why-the-outline-css-property-is-so-important/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tool: A Google Maps powered Twilight/&#8217;Golden Hour&#8217; Calculator</title>
		<link>http://www.joepettersson.com/a-twilight-golden-hour-calculator/</link>
		<comments>http://www.joepettersson.com/a-twilight-golden-hour-calculator/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 12:16:32 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[The Web]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.joepettersson.com/?p=341</guid>
		<description><![CDATA[No, not that Twilight. This is a really cool Google Maps powered tool that allows the budding photographer in us to work out when the &#8216;Golden hour&#8217; is wherever we are on the planet. In photography, the golden hour (sometimes &#8230; <a href="http://www.joepettersson.com/a-twilight-golden-hour-calculator/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>No, not that Twilight. This is a really cool Google Maps powered tool that allows the budding photographer in us to work out when the &#8216;Golden hour&#8217; is wherever we are on the planet.</p>
<p><span id="more-341"></span></p>
<blockquote><p>In photography, the golden hour (sometimes known as magic hour, especially in cinematography) is the first and last hour of sunlight during the day,when a specific photographic effect is achieved due to the quality of the light. &#8211; <a href="http://en.wikipedia.org/wiki/Golden_hour_(photography)">Wikipedia</a></p></blockquote>
<p>A really useful tool I strongly recommend you check out (the UI could use a little work however).</p>
<p>The link: <a href="http://jekophoto.eu/tools/twilight-calculator-blue-hour-golden-hour/">The Twilight Calculator</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.joepettersson.com/a-twilight-golden-hour-calculator/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>An accessible and validated PHP/jQuery contact form</title>
		<link>http://www.joepettersson.com/accessible-php-and-jquery-contact-form/</link>
		<comments>http://www.joepettersson.com/accessible-php-and-jquery-contact-form/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 11:30:04 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://www.joepettersson.com/?p=321</guid>
		<description><![CDATA[This is a really accessible and well validated contact form powered by PHP and jQuery. The design is based on Orman Clark&#8217;s &#8216;Clean and Simple Signup Form&#8216;. Using both serverside PHP and client-side input validation (powered by Jorn Zaefferer&#8217;s great &#8230; <a href="http://www.joepettersson.com/accessible-php-and-jquery-contact-form/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is a really accessible and well validated contact form powered by PHP and jQuery. The design is based on <a href="http://www.ormanclark.com/">Orman Clark&#8217;s</a> &#8216;<a href="http://www.premiumpixels.com/clean-simple-signup-form-psd/">Clean and Simple Signup Form</a>&#8216;.</p>
<p>Using both serverside PHP and client-side input validation (powered by Jorn Zaefferer&#8217;s great <a href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/">jQuery Validation Plugin</a>) this form is developed using ARIA accessibility standards, making it one of the most accessible and reliable contact forms available.</p>
<p><span id="more-321"></span></p>
<h2>Usage</h2>
<p>In order to get the form working, all you need to do is open up <span class="cour">index.php</span> in your favourite text editor and replace the pre-configured sample email address with your own. That&#8217;s it. It&#8217;s as simple as that.</p>
<p>As you&#8217;ll notice, both jQuery and the validate plugin are served via CDN (Google and Microsoft respectively) so all you need is the core PHP script and the dependent presentational files (images and CSS).</p>
<p>The form has been tested in all major browsers and works great, but as there are a couple of very minor CSS3 presentational things it might not look quite as great in non-compliant browsers (I&#8217;m looking at you &lt;IE8) but even then I doubt users will really notice.</p>
<p>See <a href="http://www.joepettersson.com/demo/contact-form/">the demo</a> or <a href="http://www.joepettersson.com/download/contact-form.zip">download the contact form</a>. </p>
<h2>License</h2>
<p>As with all my freebies, this is distributed under the <a href="http://creativecommons.org/licenses/by/3.0/" target="_blank">Creative Commons Attribution 3.0 Unported License</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joepettersson.com/accessible-php-and-jquery-contact-form/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>A jQuery and PHP RSS Feed Syndicator (with auto-reload!)</title>
		<link>http://www.joepettersson.com/a-jquery-and-php-rss-feed-syndicator-with-auto-reload/</link>
		<comments>http://www.joepettersson.com/a-jquery-and-php-rss-feed-syndicator-with-auto-reload/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 11:31:37 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Front End/UI]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://www.joepettersson.com/?p=306</guid>
		<description><![CDATA[This simple jQuery and PHP feed loader is a dead simple and effective way of adding the contents of a news feed to any page you choose. Inserted into a page using only jQuery, it&#8217;ll allow you to keep your &#8230; <a href="http://www.joepettersson.com/a-jquery-and-php-rss-feed-syndicator-with-auto-reload/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This simple jQuery and PHP feed loader is a dead simple and effective way of adding the contents of a news feed to any page you choose. Inserted into a page using only jQuery, it&#8217;ll allow you to keep your users up to date with whatever&#8217;s happening right now with it&#8217;s inline Ajax powered reload.</p>
<p><span id="more-306"></span></p>
<p>There are several ways in which you can display the contents of an RSS feed within another page: doing it only with built-in PHP functions on page-load; using external classes or by using JavaScript itself to grab and parse a feed using a PHP proxy. All of which have their distinct advantages and disadvantages.</p>
<p>The method I&#8217;m using is a combination of the two, using PHP to grab and parse the feed and then JavaScript (via jQuery) to load the data into the page and auto-update it every 10 seconds (or by whatever period you&#8217;d wish). The PHP is based on Gary White&#8217;s very effective <a href="http://apptools.com/phptools/downloads/rssreader.zip">RSSReader</a>. </p>
<h2>Usage</h2>
<p>The address of the feed to be displayed is determined in <span class="cour">rssfeed.php</span> (contained within archive provided below), you can edit it as you see fit. Once this edit has taken place the demo should function perfectly, displaying the most recent entry from the specified feed.</p>
<p>However, if you wish to install the feed syndicator on another page (and let&#8217;s face it, you probably will) it&#8217;s simply a matter of copying the JavaScript marked and contained with the header of <span class="cour">index.html</span> (included in the download) into the desired page and adding <span class="cour">id=&#8221;rssUpdater&#8221;</span> to the div where you&#8217;d like the feed to be displayed.</p>
<p><strong>Note:</strong> When installing the script, be aware that you need to keep <span class="cour">rssfeed.php</span> and <span class="cour">rssreader.php</span> within the same directory, and that the path to <span class="cour">rssfeed.php</span> needs to be accurately determined in the JavaScript.</p>
<p>If you&#8217;s like to alter the length of time between auto updating the data, it can be set up changing the value used by the JavaScript: this is set to 10000 milliseconds in the demo (10 seconds, obviously( but can be pretty much anything you like.</p>
<p>At following links you&#8217;ll find <a href="http://www.joepettersson.com/demo/jquery-and-php-rss-autoloader/">the demo</a> and a link to <a href="http://www.joepettersson.com/download/jquery-and-php-rss-autoloader.zip">download the zip file</a>.</p>
<p>As always, if you have any questions feel free to ask in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joepettersson.com/a-jquery-and-php-rss-feed-syndicator-with-auto-reload/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

