<?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>Chris Tate-Davies &#187; HTML</title>
	<atom:link href="http://www.christatedavies.co.uk/category/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.christatedavies.co.uk</link>
	<description>An archive of helpful tit bits of information for development, and probably some stuff that is incomplete, wrong or boring...</description>
	<lastBuildDate>Tue, 31 Jan 2012 11:18:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using mod_rewrite for clean URLs</title>
		<link>http://www.christatedavies.co.uk/2012/01/31/using-mod_rewrite-for-clean-urls/</link>
		<comments>http://www.christatedavies.co.uk/2012/01/31/using-mod_rewrite-for-clean-urls/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 11:18:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[IT]]></category>

		<guid isPermaLink="false">http://www.christatedavies.co.uk/?p=323</guid>
		<description><![CDATA[Say your message board on your blog uses the following request URL to find and display the correct data: http://www.mysite.com/blog/index.php?category=news&#38;year=2012&#38;month=1 This is a rather simple request, but it is not very nice looking or easy on the eye, and it can be improved, for the user end experience. Take this for instance: http://www.mysite.com/blog/news/2012/1 That&#8217;s much [...]<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2012/01/31/using-mod_rewrite-for-clean-urls/' addthis:title='Using mod_rewrite for clean URLs ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Say your message board on your blog uses the following request URL to find and display the correct data:</p>
<pre>http://www.mysite.com/blog/index.php?category=news&amp;year=2012&amp;month=1</pre>
<p>This is a rather simple request, but it is not very nice looking or easy on the eye, and it can be improved, for the user end experience.</p>
<p>Take this for instance:</p>
<pre>http://www.mysite.com/blog/news/2012/1</pre>
<p>That&#8217;s much nicer, and easier to read and understand even for a non technical person. They may understand the category, year and month without any input from you,</p>
<p>How do you convert your site? Well you don&#8217;t need to, but you can use a .htaccess mod_rewrite to change the url in the background.</p>
<pre>RewriteRule blog/([a-z0-9]+)/([0-9]{4})/([0-9]) /blog/index.php?category=$1&amp;year=$2&amp;month=$3 [L]</pre>
<p>This takes the first quantifier after blog (a-z0-9) and says any characters, put into $1. The second is a 4 digit number, and the third, any number.</p>
<p>The [L] tells the re-write engine that if this rule matches, don&#8217;t do any more rule processing (last one)</p>
<p>If you implement this way of displaying your links, then your site should be better off in the big wide world of search engines. A lot of search engine spiders ignore URL&#8217;s with &amp; in them as it can cause recursive looping and its easier to just ignore them.</p>
<p>Also, if you come to rewrite your blog in a new language, ASP for instance (shudder at the thought) then you can change the rule simply:</p>
<pre>RewriteRule blog/([a-z0-9]+)/([0-9]{4})/([0-9]) /blog/index.asp?category=$1&amp;year=$2&amp;month=$3 [L]</pre>
<p>Thinking about your user experience, even if you are considering the search engines, is important.</p>
<p>If you want to read more about the Apache re-write module, you can go <a href="http://httpd.apache.org/docs/current/rewrite/" target="_blank">here</a></p>
<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2012/01/31/using-mod_rewrite-for-clean-urls/' addthis:title='Using mod_rewrite for clean URLs ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.christatedavies.co.uk/2012/01/31/using-mod_rewrite-for-clean-urls/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HEX colour chart with RGB reference</title>
		<link>http://www.christatedavies.co.uk/2011/11/30/hex-colour-chart-with-rgb-reference/</link>
		<comments>http://www.christatedavies.co.uk/2011/11/30/hex-colour-chart-with-rgb-reference/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 09:52:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[chart]]></category>
		<category><![CDATA[colors]]></category>
		<category><![CDATA[colours]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[hex]]></category>
		<category><![CDATA[RGB]]></category>
		<category><![CDATA[stylesheet]]></category>

		<guid isPermaLink="false">http://www.christatedavies.co.uk/?p=288</guid>
		<description><![CDATA[I need this quite often so I thought I would put it on my site. Nothing more, nothing less. (Click it to make it bigger) &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/11/30/hex-colour-chart-with-rgb-reference/' addthis:title='HEX colour chart with RGB reference ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>I need this quite often so I thought I would put it on my site. Nothing more, nothing less. (Click it to make it bigger)</p>
<p><a href="http://www.christatedavies.co.uk/wp-content/uploads/2011/11/hexchart.gif"><img class="alignleft size-medium wp-image-289" title="HEX colour chart" src="http://www.christatedavies.co.uk/wp-content/uploads/2011/11/hexchart-300x259.gif" alt="HEX colour chart" width="300" height="259" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/11/30/hex-colour-chart-with-rgb-reference/' addthis:title='HEX colour chart with RGB reference ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.christatedavies.co.uk/2011/11/30/hex-colour-chart-with-rgb-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS properties direction (padding, margins, etc)</title>
		<link>http://www.christatedavies.co.uk/2011/11/25/css-properties-direction-padding-margins-etc/</link>
		<comments>http://www.christatedavies.co.uk/2011/11/25/css-properties-direction-padding-margins-etc/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 14:44:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[box-model]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[margins]]></category>
		<category><![CDATA[padding]]></category>
		<category><![CDATA[stylesheets]]></category>

		<guid isPermaLink="false">http://www.christatedavies.co.uk/?p=285</guid>
		<description><![CDATA[You&#8217;ll have no doubt seen: padding: 5px 10px 5px 10px; in a CSS file. Do you ever wonder which of the properties are which? Just start at the top and move clockwise until you reach the left side. Top Right Bottom Left It saves doing this:- padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; Just [...]<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/11/25/css-properties-direction-padding-margins-etc/' addthis:title='CSS properties direction (padding, margins, etc) ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>You&#8217;ll have no doubt seen:</p>
<pre>padding: 5px 10px 5px 10px;</pre>
<p>in a CSS file. Do you ever wonder which of the properties are which?</p>
<p>Just start at the top and move clockwise until you reach the left side.</p>
<pre>Top Right Bottom Left</pre>
<p>It saves doing this:-</p>
<pre>padding-top: 5px;
padding-right: 10px;
padding-bottom: 5px;
padding-left: 10px;</pre>
<p>Just a simple one that I&#8217;m sure 99.9% of people knew.</p>
<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/11/25/css-properties-direction-padding-margins-etc/' addthis:title='CSS properties direction (padding, margins, etc) ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.christatedavies.co.uk/2011/11/25/css-properties-direction-padding-margins-etc/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>A-Z list of CSS features</title>
		<link>http://www.christatedavies.co.uk/2011/11/20/a-z-list-of-css-features/</link>
		<comments>http://www.christatedavies.co.uk/2011/11/20/a-z-list-of-css-features/#comments</comments>
		<pubDate>Sun, 20 Nov 2011 17:34:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.christatedavies.co.uk/2011/11/20/a-z-list-of-css-features/</guid>
		<description><![CDATA[Found this great list of CSS features. https://developer.mozilla.org/en/CSS/CSS_Reference<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/11/20/a-z-list-of-css-features/' addthis:title='A-Z list of CSS features ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Found this great list of CSS features.</p>
<p><a href="https://developer.mozilla.org/en/CSS/CSS_Reference" target="_blank">https://developer.mozilla.org/en/CSS/CSS_Reference</a></p>
<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/11/20/a-z-list-of-css-features/' addthis:title='A-Z list of CSS features ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.christatedavies.co.uk/2011/11/20/a-z-list-of-css-features/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Viewing events attached to elements via JavaScript</title>
		<link>http://www.christatedavies.co.uk/2011/09/27/viewing-events-attached-to-elements-via-javascript/</link>
		<comments>http://www.christatedavies.co.uk/2011/09/27/viewing-events-attached-to-elements-via-javascript/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 15:32:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.christatedavies.co.uk/?p=243</guid>
		<description><![CDATA[If like myself, you often attach functions to elements using jQuery, for example: $('.btnName').live('click', function() { //do something }); There is a nice little browser extension that will show all the elements on the page with a little bubble outlining the attached events/functions. It is written by Allan Jardine, and you can get it from [...]<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/09/27/viewing-events-attached-to-elements-via-javascript/' addthis:title='Viewing events attached to elements via JavaScript ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>If like myself, you often attach functions to elements using jQuery, for example:</p>
<pre>$('.btnName').live('click', function() {
    //do something
});</pre>
<p>There is a nice little browser extension that will show all the elements on the page with a little bubble outlining the attached events/functions.</p>
<p>It is written by Allan Jardine, and you can get it from <a href="http://www.sprymedia.co.uk/article/Visual+Event" target="_blank">http://www.sprymedia.co.uk/article/Visual+Event</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/09/27/viewing-events-attached-to-elements-via-javascript/' addthis:title='Viewing events attached to elements via JavaScript ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.christatedavies.co.uk/2011/09/27/viewing-events-attached-to-elements-via-javascript/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>JQuery &#8211; bind event to non existant element</title>
		<link>http://www.christatedavies.co.uk/2011/05/10/jquery-bind-event-to-non-existant-element/</link>
		<comments>http://www.christatedavies.co.uk/2011/05/10/jquery-bind-event-to-non-existant-element/#comments</comments>
		<pubDate>Tue, 10 May 2011 10:29:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[click]]></category>
		<category><![CDATA[doesn't exist]]></category>
		<category><![CDATA[elements]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[selector]]></category>

		<guid isPermaLink="false">http://www.christatedavies.co.uk/?p=162</guid>
		<description><![CDATA[We all have to bind events to elements: $('#link).click(function(){     do some stuff }); But, what if that element doesn&#8217;t exist yet? Well, you can use the &#8220;live&#8221; handler: $('#link').live('click', function(){     do some stuff }); This will carry the event handler on and will match any future element that matches the selector. More information [...]<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/05/10/jquery-bind-event-to-non-existant-element/' addthis:title='JQuery &#8211; bind event to non existant element ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>We all have to bind events to elements:</p>
<pre>$('#link).click(function(){
    do some stuff
 });</pre>
<p>But, what if that element doesn&#8217;t exist yet? Well, you can use the &#8220;live&#8221; handler:</p>
<pre>$('#link').live('click', function(){
    do some stuff
 });</pre>
<p>This will carry the event handler on and will match any future element that matches the selector.</p>
<p>More information can be found here: <a href="http://api.jquery.com/live/" target="_blank">http://api.jquery.com/live/</a></p>
<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/05/10/jquery-bind-event-to-non-existant-element/' addthis:title='JQuery &#8211; bind event to non existant element ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.christatedavies.co.uk/2011/05/10/jquery-bind-event-to-non-existant-element/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sorting a SELECT with JQuery</title>
		<link>http://www.christatedavies.co.uk/2010/10/04/sorting-a-select-with-jquery/</link>
		<comments>http://www.christatedavies.co.uk/2010/10/04/sorting-a-select-with-jquery/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 12:36:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[select]]></category>
		<category><![CDATA[sort]]></category>

		<guid isPermaLink="false">http://www.christatedavies.co.uk/?p=114</guid>
		<description><![CDATA[Just a simple function to sort an already populated list. Obviously it would be easier to sort before populating, but there are the odd occasion where this is more complicated than you thought. Requirements : JQuery var selectOptions = $("#selectId option"); Then, we just run the sort command on the options array &#8211; and this [...]<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2010/10/04/sorting-a-select-with-jquery/' addthis:title='Sorting a SELECT with JQuery ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Just a simple function to sort an already populated list. Obviously it would be easier to sort before populating, but there are the odd occasion where this is more complicated than you thought.</p>
<p>Requirements : JQuery</p>
<pre>var selectOptions = $("#selectId option");</pre>
<p>Then, we just run the sort command on the options array &#8211; and this easily sorts the items.</p>
<pre>selectOptions.sort(function(a, b) {
    if (a.text &gt; b.text) {
        return 1;
    }
    else if (a.text &lt; b.text) {
        return -1;
    }
    else {
        return 0
    }
});</pre>
<p>Then, at the end empty the select object and re-append the sorted options array</p>
<pre>$("#selectId").empty().append(selectOptions);</pre>
<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2010/10/04/sorting-a-select-with-jquery/' addthis:title='Sorting a SELECT with JQuery ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.christatedavies.co.uk/2010/10/04/sorting-a-select-with-jquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>I wrote one of the first social networking sites</title>
		<link>http://www.christatedavies.co.uk/2010/05/13/i-wrote-one-of-the-first-social-networking-sites/</link>
		<comments>http://www.christatedavies.co.uk/2010/05/13/i-wrote-one-of-the-first-social-networking-sites/#comments</comments>
		<pubDate>Thu, 13 May 2010 09:13:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Access]]></category>
		<category><![CDATA[ASP]]></category>
		<category><![CDATA[fish-bar]]></category>
		<category><![CDATA[members]]></category>
		<category><![CDATA[social networking]]></category>

		<guid isPermaLink="false">http://www.christatedavies.co.uk/?p=73</guid>
		<description><![CDATA[Its not a claim to fame, or a preempt to a court case to a &#8216;big hitter&#8217;, but back in the year 2000, when I was a fledgling junior programmer, I wrote an ASP web site based around a bunch of &#8216;buddies&#8217;. You could add people to your list, message them, upload a picture (just [...]<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2010/05/13/i-wrote-one-of-the-first-social-networking-sites/' addthis:title='I wrote one of the first social networking sites ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Its not a claim to fame, or a preempt to a court case to a &#8216;big hitter&#8217;, but back in the year 2000, when I was a fledgling junior programmer, I wrote an ASP web site based around a bunch of &#8216;buddies&#8217;. You could add people to your list, message them, upload a picture (just the one) of yourself, and view other&#8217;s profiles.</p>
<p>This sounds very familiar, right?</p>
<p><span id="more-73"></span></p>
<p>It was called the fish-bar, and even had a .com domain&#8230; www.fish-bar.com &#8211; at the time, there was a big thing about brand names, so I wanted a small name that people could remember and was loosely connected with friends, socialising, etc. So the &#8216;bar&#8217; was put into the name&#8230; The fish was just a random word&#8230; It worked well.</p>
<p>Unfortunately, the code was very clunky, and there was very little modular activity on it, but it worked, and for all its fault, security issues, etc, it was a working site and I had member (albeit only a dozen or so!)</p>
<p>The fish-bar used a dirty Microsoft Access database, and was built in  Microsoft Active Server pages. I said before that it was clunky, and it  was. It used very basic javascript, and there was absolutely no tests  for SQL injections, or scripting hacks&#8230; But, members could sign up for  free&#8230;</p>
<p>It went live in 2001 &#8211; and you can sort of see an archive of it at the way-back machine&#8230; (<a href="http://web.archive.org/web/*/http://www.fish-bar.com" target="_blank">http://web.archive.org/web/*/http://www.fish-bar.com</a>) &#8211; but it died a death in 2002 &#8211; but I can&#8217;t remember why. Perhaps I didn&#8217;t feel like renewing the domain name&#8230; Not sure&#8230;</p>
<p>It just goes to show, that anyone could&#8217;ve written a website that millions of people use, every day and get bought out by a major player with a team of developers and proper coding standards. If I&#8217;d kept up the coding and maintenance of the site it might have gone somewhere, or got me noticed by head hunters, or anything else.</p>
<p>We read stories of students selling their sites for millions of pounds, but I was not one of them.</p>
<p>I do still have some of the code that one of the guys at the wayback archive managed to send me, and I&#8217;ve uploaded it here, incase anyone wants to have a look and a laugh at how old and outdated it was. You can find the code <a href="http://www.christatedavies.co.uk/files/fishbar.rar">here</a></p>
<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2010/05/13/i-wrote-one-of-the-first-social-networking-sites/' addthis:title='I wrote one of the first social networking sites ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.christatedavies.co.uk/2010/05/13/i-wrote-one-of-the-first-social-networking-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TabIndex in HTML</title>
		<link>http://www.christatedavies.co.uk/2010/03/18/tabindex-in-html/</link>
		<comments>http://www.christatedavies.co.uk/2010/03/18/tabindex-in-html/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 01:38:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[tabindex]]></category>

		<guid isPermaLink="false">http://www.christatedavies.co.uk/?p=9</guid>
		<description><![CDATA[TabIndex is an attribute to HTML elements that tells the browser which control takes focus next when TAB is pressed. &#60;input id="one" tabindex="3" /&#62; &#60;input id="two" tabindex="1" /&#62; &#60;input id="three" tabindex="2" /&#62; &#60;input id="four" tabindex="4" /&#62; Here, once the page is loaded, the first TAB press will set focus to input two, and then subsequent [...]<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2010/03/18/tabindex-in-html/' addthis:title='TabIndex in HTML ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<h2><span style="line-height: 19px; font-size: 13px;">TabIndex is an attribute to HTML elements that tells the browser which control takes focus next when TAB is pressed.</span></h2>
<pre>&lt;input id="one" tabindex="3" /&gt;

&lt;input id="two" tabindex="1" /&gt;

&lt;input id="three" tabindex="2" /&gt;

&lt;input id="four" tabindex="4" /&gt;</pre>
<p>Here, once the page is loaded, the first TAB press will set focus to input two, and then subsequent presses will move the focus to three, one and then four &#8211; before returning to two.</p>
<p>In a static web page it can be useful, but in a dynamic page, then this is a truely awful way of moving around.Especially as a web browser will automatically give the controls their own order, naturally in the order that they appear in the HTML source.</p>
<p>So why use it? I have no idea. I have never needed this attribute, and cannot ever see me ever using it.</p>
<p>I&#8217;ve just had to remove all the wonky tabindex&#8217;s from a huge page. Luckily I use an IDE that lets me search and replace using regular expressions! <a title="Online Regular Expression Testing Tool" href="/htsrv/trackback.php?tb_id=32">Online Regular Expression Testing Tool</a></p>
<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2010/03/18/tabindex-in-html/' addthis:title='TabIndex in HTML ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.christatedavies.co.uk/2010/03/18/tabindex-in-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

