<?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>dom111.co.uk</title>
	<atom:link href="http://www.dom111.co.uk/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dom111.co.uk/blog</link>
	<description>Move along. Nothing to see here.</description>
	<lastBuildDate>Tue, 17 Apr 2012 18:47:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Better timeouts and intervals with Javascript</title>
		<link>http://www.dom111.co.uk/blog/coding/better-timeouts-and-intervals-with-javascript/326</link>
		<comments>http://www.dom111.co.uk/blog/coding/better-timeouts-and-intervals-with-javascript/326#comments</comments>
		<pubDate>Thu, 29 Mar 2012 19:28:30 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[clearInterval]]></category>
		<category><![CDATA[clearTimeout]]></category>
		<category><![CDATA[setInterval]]></category>
		<category><![CDATA[setTimeout]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=326</guid>
		<description><![CDATA[window.setTimeout and window.setInterval don&#8217;t ever seem to have been given any love for a long time. (At least from my limited end-user point of view). I&#8217;ve toyed in the past with a better queuing system for them and having the &#8230; <a href="http://www.dom111.co.uk/blog/coding/better-timeouts-and-intervals-with-javascript/326">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><code>window.setTimeout</code> and <code>window.setInterval</code> don&#8217;t ever seem to have been given any love for a long time. (At least from my limited end-user point of view). I&#8217;ve toyed in the past with a better queuing system for them and having the ability to run on clear (especially for intervals), but I&#8217;ve actually knocked up a basic script that allows object-oriented timeout events. It still uses the native implementations outside, and I&#8217;m sure that this has probably already been done 100 times, but I still wanted to have a go.</p>
<p>This script extends the return from <code>window.setTimeout</code> and <code>window.setInterval</code> to be an object itself that you can <code>stop()</code> and <code>restart()</code>, preserving the function for further use.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> t <span style="color: #339933;">=</span> window.<span style="color: #660066;">setTimeout</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>timeout<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #006600; font-style: italic;">// timeout argument is the timeout object itself</span>
    console.<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'test'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">300</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// test</span>
t.<span style="color: #660066;">restart</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// test</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> s <span style="color: #339933;">=</span> window.<span style="color: #660066;">setInterval</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>interval<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #006600; font-style: italic;">// interval argument is the interval object itself</span>
    Messages.<span style="color: #660066;">check</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">1000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// Interval</span>
s.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// Interval</span>
s.<span style="color: #660066;">complete</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// 9</span>
s.<span style="color: #660066;">cancelled</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// 1</span></pre></div></div>

<p><strong>Please note:</strong> I&#8217;ve only really tested this in Chrome! I can&#8217;t see why it wouldn&#8217;t work in other browsers, I guess maybe some of these would be protected, but I&#8217;m not sure&#8230; If that&#8217;s the case, it wouldn&#8217;t be too difficult to utilise the alternative <code>new Timeout(function(){ }, 400);</code> syntax&#8230;</p>
<p>There&#8217;s a bit more (not much!) <a href="/files/timeout/" title="Better timeout and intervals with Javascript">of an explanation here</a> and <a href="/files/timeout/timeouts.zip">the code is available here</a>. There are no prerequisites for this code, should run on plain old Javascript.</p>
<p><strong>Edit</strong>: Minor update to the script to include the object in the callback.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/better-timeouts-and-intervals-with-javascript/326/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Parallax: In action</title>
		<link>http://www.dom111.co.uk/blog/coding/jquery-parallax-in-action/319</link>
		<comments>http://www.dom111.co.uk/blog/coding/jquery-parallax-in-action/319#comments</comments>
		<pubDate>Sun, 18 Mar 2012 09:24:25 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jquery parallax]]></category>
		<category><![CDATA[parallax]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=319</guid>
		<description><![CDATA[A lot of the traffic I get to this blog is related to the jQuery Parallax script I wrote quite some time ago. Looking at the code now, I don&#8217;t think I&#8217;d change too much about it, perhaps use .on('mousemouse', &#8230; <a href="http://www.dom111.co.uk/blog/coding/jquery-parallax-in-action/319">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A lot of the traffic I get to this blog is related to <a href="/blog/coding/jquery-parallax-0-2-minor-updates/125">the jQuery Parallax script I wrote quite some time ago</a>. Looking at the code now, I don&#8217;t think I&#8217;d change too much about it, perhaps use <code>.on('mousemouse', ...)</code> instead of <code>.mousemove()</code>, but mostly it seems to serve it&#8217;s function quite well. Since the only real functions being called are <code>.mousemove()</code> and <code>.css()</code> it should still be working with the latest versions of jQuery and unless they decide to majorly change the API, it should continue to work too!</p>
<p>Since my example was on a fairly empty page, I thought I&#8217;d link to a couple of sites that are using it in the real world:</p>
<ul>
<li><a href="http://www.lunaii-dollmaker.com/" target="_blank">Lunaii-dollmaker.com</a> &#8211; a great header, excellent style</li>
<li><a href="http://attackemart.in/" target="_blank">Attackemart.in</a> &#8211; a great idea utilising horizontal and vertical movement</li>
<li><a href="http://lsd.in.ua/" target="_blank">lsd.in.ua</a> &#8211; a good example on the homepage</li>
</ul>
<p>If you&#8217;re using the script and think your sites is a good example of utilising the parallax effect, please leave me a message!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/jquery-parallax-in-action/319/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tool: Fix broken unicode characters</title>
		<link>http://www.dom111.co.uk/blog/coding/tool-fix-broken-unicode-characters/312</link>
		<comments>http://www.dom111.co.uk/blog/coding/tool-fix-broken-unicode-characters/312#comments</comments>
		<pubDate>Tue, 13 Mar 2012 19:56:08 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[fix broken unicode]]></category>
		<category><![CDATA[fix broken utf-8]]></category>
		<category><![CDATA[fix broken utf8]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[unicode encoding]]></category>
		<category><![CDATA[utf-8 encoding]]></category>
		<category><![CDATA[utf8 encoding]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=312</guid>
		<description><![CDATA[So in the past I&#8217;ve had many a nightmare receiving garbled unicode characters in an email or in a poorly encoded database field, so I&#8217;ve written a basic tool that works with some of the most common Western European characters &#8230; <a href="http://www.dom111.co.uk/blog/coding/tool-fix-broken-unicode-characters/312">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So in the past I&#8217;ve had many a nightmare receiving garbled unicode characters in an email or in a poorly encoded database field, so I&#8217;ve written a basic tool that works with some of the most common Western European characters and will correctly convert them (optionally to their closest matching standard ASCII character).</p>
<p>I am going to try and work on a full set (that can be incrementally loaded), but this has been sufficient for my needs so far.</p>
<p><a href="/files/utf8" title="Broken UTF-8/Unicode fixer">Use it here</a>!</p>
<p><strong>Edit</strong>: I&#8217;ve updated the Tool to allow for various functions, input via literals (\x0d or \u02f4), returning to multibyte in the text area and other fixes. The same link will work.</p>
<p><a href="http://www.utf8-chartable.de/unicode-utf8-table.pl" target="_blank">This link</a> was incredibly helpful with my investigation and testing!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/tool-fix-broken-unicode-characters/312/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Bookmarklet: Reload CSS files without reloading the page</title>
		<link>http://www.dom111.co.uk/blog/coding/bookmarklet-reload-css-files-without-reloading-the-page/304</link>
		<comments>http://www.dom111.co.uk/blog/coding/bookmarklet-reload-css-files-without-reloading-the-page/304#comments</comments>
		<pubDate>Tue, 13 Mar 2012 19:30:07 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[bookmarklet]]></category>
		<category><![CDATA[reload css]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=304</guid>
		<description><![CDATA[Working on styling the contents of popup windows can be frustrating and laborious. But not if you can just reload the CSS&#8230; This bookmarklet will reload all the associated stylesheets in the current document. It looks for all &#60;link/&#62; elements &#8230; <a href="http://www.dom111.co.uk/blog/coding/bookmarklet-reload-css-files-without-reloading-the-page/304">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Working on styling the contents of popup windows can be frustrating and laborious. But not if you can just reload the CSS&#8230;</p>
<p>This bookmarklet will reload all the associated stylesheets in the current document. It looks for all <code>&lt;link/&gt;</code> elements with <code>rel="stylesheet"</code>, removes from the DOM and re-adds them appending a ?_=1234567890 (or &amp;_ depending on the URL, where the numbers represent the JS timestamp) into the <code>&lt;head/&gt;</code>.</p>
<p>Hopefully this will help someone suffering similar pain to myself!</p>
<p><a title="Reload CSS" href='javascript:(function(g,d,b,f,a,c,e){var h=g[d]("head")[0],k=g[d]("link"),j=[];for(;e<k[c];e++){if(k[e][a][b]()[f](/\.css/)){j.push(k[e].cloneNode(!1));k[e].parentNode.removeChild(k[e]);e--}}while(j[c]){j[0][a]=j[0][a][b]().replace(/([&#038;\?])_=\d+/,"");j[0][a]=j[0][a]+(j[0][a][b]()[f](/\?/)?"&#038;":"?")+"_="+Date.now()[b]();h.appendChild(j.shift())}})(document,"getElementsByTagName","toString","match","href","length",0);'>Reload CSS</a> (Add the link to the left to your bookmarks to use!)</p>
<p><strong>Please note</strong>: I haven&#8217;t tested this in IE, but surely it&#8217;ll work&#8230; Right?</p>
<p><span id="more-304"></span></p>
<p>Full commented code:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>document<span style="color: #339933;">,</span> getElementsByTagName<span style="color: #339933;">,</span> toString<span style="color: #339933;">,</span> match<span style="color: #339933;">,</span> href<span style="color: #339933;">,</span> length<span style="color: #339933;">,</span> i<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> head <span style="color: #339933;">=</span> document<span style="color: #009900;">&#91;</span>getElementsByTagName<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'head'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>
        links <span style="color: #339933;">=</span> document<span style="color: #009900;">&#91;</span>getElementsByTagName<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'link'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        store <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #006600; font-style: italic;">// iterate over all the existing s</span>
    <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> links<span style="color: #009900;">&#91;</span>length<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #006600; font-style: italic;">// if it's a stylesheet</span>
        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>links<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>href<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>toString<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span>match<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/\.css/</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #006600; font-style: italic;">// clone the element, false is needed as Firefox requires the deep flag</span>
            store.<span style="color: #660066;">push</span><span style="color: #009900;">&#40;</span>links<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">cloneNode</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #006600; font-style: italic;">// then remove it from the DOM</span>
            links<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">parentNode</span>.<span style="color: #660066;">removeChild</span><span style="color: #009900;">&#40;</span>links<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #006600; font-style: italic;">// decrement i, because links is a NodeList (not an array) and when the element is</span>
            <span style="color: #006600; font-style: italic;">// removed from the DOM, it is also removed from the NodeList</span>
            i<span style="color: #339933;">--;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #006600; font-style: italic;">// iterate over the stored items</span>
    <span style="color: #000066; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span>store<span style="color: #009900;">&#91;</span>length<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #006600; font-style: italic;">// strip out any previous cachebusting querystring</span>
        store<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>href<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> store<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>href<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>toString<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/([&amp;\?])_=\d+/</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        store<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>href<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> store<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>href<span style="color: #009900;">&#93;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span>store<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>href<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>toString<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span>match<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/\?/</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">'&amp;'</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">'?'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'_='</span> <span style="color: #339933;">+</span> Date.<span style="color: #660066;">now</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span>toString<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #006600; font-style: italic;">// put the element in the </span>
        head.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>store.<span style="color: #660066;">shift</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>document<span style="color: #339933;">,</span> <span style="color: #3366CC;">'getElementsByTagName'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'toString'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'match'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'href'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'length'</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/bookmarklet-reload-css-files-without-reloading-the-page/304/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prototype 1.6: Event.live</title>
		<link>http://www.dom111.co.uk/blog/coding/prototype-1-6-event-live/295</link>
		<comments>http://www.dom111.co.uk/blog/coding/prototype-1-6-event-live/295#comments</comments>
		<pubDate>Wed, 26 Oct 2011 16:33:30 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Prototype]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=295</guid>
		<description><![CDATA[I&#8217;ve recently been using Prototype 1.6 and had a need for a jQuery.live() clone. The following code appears to emulate mouse events well (form submits [and maybe more...] do not work in IE): Event.live = function&#40;s, e, f&#41; &#123; Event.observe&#40;document, &#8230; <a href="http://www.dom111.co.uk/blog/coding/prototype-1-6-event-live/295">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently been using Prototype 1.6 and had a need for a jQuery.live() clone. The following code appears to emulate mouse events well (form submits [and maybe more...] do not work in IE):</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">Event.<span style="color: #660066;">live</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>s<span style="color: #339933;">,</span> e<span style="color: #339933;">,</span> f<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    Event.<span style="color: #660066;">observe</span><span style="color: #009900;">&#40;</span>document<span style="color: #339933;">,</span> e<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>event<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>Element.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span>event.<span style="color: #660066;">target</span><span style="color: #339933;">,</span> s<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #009900;">&#40;</span>f.<span style="color: #660066;">call</span><span style="color: #009900;">&#40;</span>event.<span style="color: #660066;">target</span><span style="color: #339933;">,</span> event<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                event.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>To use this run something like the following:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">Event.<span style="color: #660066;">live</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div#doesnt_exist_yet a.button'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'click'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #006600; font-style: italic;">// run this when the button is clicked</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Hope this helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/prototype-1-6-event-live/295/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery serializeObject 0.1</title>
		<link>http://www.dom111.co.uk/blog/coding/jquery-serializeobject-0-1/283</link>
		<comments>http://www.dom111.co.uk/blog/coding/jquery-serializeobject-0-1/283#comments</comments>
		<pubDate>Thu, 31 Mar 2011 22:37:47 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[formToObject]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[post data]]></category>
		<category><![CDATA[serializeObject]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=283</guid>
		<description><![CDATA[I found myself in a situation recently where I wanted to have access to variables that would have been posted, in a the same structure as if the form had been posted and returned the JSON, using this jQuery plugin &#8230; <a href="http://www.dom111.co.uk/blog/coding/jquery-serializeobject-0-1/283">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I found myself in a situation recently where I wanted to have access to variables that would have been posted, in a the same structure as if the form had been posted and returned the JSON, using this jQuery plugin and <a href="https://github.com/douglascrockford/JSON-js">Douglas Crockford&#8217;s JSON library</a>, I think I&#8217;ve done it!</p>
<p>You can <a href="/files/jquery-serializeObject/jquery.serializeObject-0.1.tar.gz">download the script here</a> and there&#8217;s <a href="/files/jquery-serializeObject">a demo here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/jquery-serializeobject-0-1/283/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Ajaxify Lite</title>
		<link>http://www.dom111.co.uk/blog/coding/jquery-ajaxify-lite/275</link>
		<comments>http://www.dom111.co.uk/blog/coding/jquery-ajaxify-lite/275#comments</comments>
		<pubDate>Fri, 29 Oct 2010 09:33:19 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[ajax form]]></category>
		<category><![CDATA[ajaxify]]></category>
		<category><![CDATA[form]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=275</guid>
		<description><![CDATA[I&#8217;ve been using the ajaxify plugin for a while now and felt it needed an update. Since .live() is supported for more events now, I thought it was time to get it working how I always wanted it to work. &#8230; <a href="http://www.dom111.co.uk/blog/coding/jquery-ajaxify-lite/275">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using the ajaxify plugin for a while now and felt it needed an update.</p>
<p>Since .live() is supported for more events now, I thought it was time to get it working how I always wanted it to work.</p>
<p>Using the same syntax on links as before, you can specify the target div, using the target=&#8221;" attribute and the url is automatically extracted from the href=&#8221;" or action=&#8221;" attribute meaning you can keep your code simple and valid but have easily Ajax populated content, as since I&#8217;m using .live() any future links/forms that match the original selector will continue to be &#8216;ajaxified&#8217;.</p>
<p>There&#8217;s <a href="/files/ajaxify/lite/">a demo here</a> and <a href="/files/ajaxify/lite/jquery.ajaxify.lite.tar.gz">source code too</a>, as ever.</p>
<p>Also <a href="http://code.google.com/p/ajaxify/source/browse/#svn/branches/lite">available through Google Code</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/jquery-ajaxify-lite/275/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>simpleGallery 0.2 &#8211; Minor updates</title>
		<link>http://www.dom111.co.uk/blog/coding/simplegallery-0-2-minor-updates/268</link>
		<comments>http://www.dom111.co.uk/blog/coding/simplegallery-0-2-minor-updates/268#comments</comments>
		<pubDate>Mon, 25 Oct 2010 13:39:49 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[image gallery]]></category>
		<category><![CDATA[photography]]></category>
		<category><![CDATA[photography gallery]]></category>
		<category><![CDATA[php image gallery]]></category>
		<category><![CDATA[php images]]></category>
		<category><![CDATA[simplegallery]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=268</guid>
		<description><![CDATA[I&#8217;ve updated the gallery script I created in July. I&#8217;ve re-factored the code into a static class for easier modification and have created a config.ini settings file, to save modifying the script itself. New features: * Image titles * Separate &#8230; <a href="http://www.dom111.co.uk/blog/coding/simplegallery-0-2-minor-updates/268">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve updated the gallery script I created in July. I&#8217;ve re-factored the code into a static class for easier modification and have created a config.ini settings file, to save modifying the script itself.</p>
<p>New features:</p>
<p>* Image titles<br />
* Separate configuration<br />
* Standard mode with safe URLs as well as mod_rewrite enabled &#8216;nice&#8217; URLs<br />
* Added &#8216;..&#8217; parent folder to galleries</p>
<p><a href="/gallery">The demo page has been updated</a> and <a href="/files/gallery/gallery-0.2.tar.gz">the script is available to download here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/simplegallery-0-2-minor-updates/268/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TextMate: Minify CSS Regular Expression</title>
		<link>http://www.dom111.co.uk/blog/coding/textmate-minify-css-regular-expression/258</link>
		<comments>http://www.dom111.co.uk/blog/coding/textmate-minify-css-regular-expression/258#comments</comments>
		<pubDate>Fri, 08 Oct 2010 09:36:29 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Regular Expressions]]></category>
		<category><![CDATA[TextMate]]></category>
		<category><![CDATA[minify css]]></category>
		<category><![CDATA[regular expression]]></category>
		<category><![CDATA[textmate]]></category>
		<category><![CDATA[textmate minify css]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=258</guid>
		<description><![CDATA[I love TextMate. It&#8217;s saved me so much time since I&#8217;ve started using, I think I&#8217;d find it impossible to use another editor. However, the format CSS compressed snippet, doesn&#8217;t quite do what I&#8217;d expect. Luckily the Find and Replace &#8230; <a href="http://www.dom111.co.uk/blog/coding/textmate-minify-css-regular-expression/258">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I love <a href="http://www.macromates.com/">TextMate</a>. It&#8217;s saved me so much time since I&#8217;ve started using, I think I&#8217;d find it impossible to use another editor. However, the format CSS compressed snippet, doesn&#8217;t quite do what I&#8217;d expect.</p>
<p>Luckily the Find and Replace regular expression engine is pretty cool!</p>
<p>I&#8217;ve got this small (!) regular expression that should minify your CSS, by putting:</p>
<p><code>;?\s*([:;,{}])\s*|\s*/\*()[\S\s]+?\*/\s*|(\s)\s+</code></p>
<p>in the Find box and:</p>
<p><code>$1</code></p>
<p>in the replace box, and by ensuring that Regular expression is ticked, you should be able to minify CSS with the Replace All button!</p>
<p><strong><span style="font-weight: normal;"><img class="alignnone size-full wp-image-262" title="TextMate Find and Replace: Minify CSS" src="http://www.dom111.co.uk/blog/wp-content/2010/10/Screen-shot-2010-10-08-at-10.41.24.png" alt="TextMate Find and Replace: Minify CSS" width="497" height="186" /></span></strong></p>
<p><strong><span style="font-weight: normal;"> </span>Note</strong>: I haven&#8217;t test this particularly extensively, or with the IE <code>expression()</code>. This may produce undesired results! It certainly seems to be fine on all the standard CSS I&#8217;ve tested it with.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/textmate-minify-css-regular-expression/258/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SequelPro: Twilight Theme</title>
		<link>http://www.dom111.co.uk/blog/coding/sequelpro-twilight-theme/252</link>
		<comments>http://www.dom111.co.uk/blog/coding/sequelpro-twilight-theme/252#comments</comments>
		<pubDate>Thu, 16 Sep 2010 16:56:21 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[sequel pro]]></category>
		<category><![CDATA[sequel pro theme]]></category>
		<category><![CDATA[sequelpro]]></category>
		<category><![CDATA[sequelpro theme]]></category>
		<category><![CDATA[textmate]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[twilight]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=252</guid>
		<description><![CDATA[I&#8217;ve been using SequelPro for quite some time. I think it&#8217;s a great app for working with MySQL databases and I love the ability to style the Query Editor. I created a theme (which might only work with the nightly &#8230; <a href="http://www.dom111.co.uk/blog/coding/sequelpro-twilight-theme/252">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using <a href="http://www.sequelpro.com/">SequelPro</a> for quite some time. I think it&#8217;s a great app for working with MySQL databases and I love the ability to style the Query Editor.</p>
<p>I created a theme (which might only work with the <a href="http://nightly.sequelpro.com/">nightly builds</a>&#8230;) that is not entirely disimilar to the Twilight theme for TextMate.</p>
<p>Thought I&#8217;d share it, in case anyone else would like it too!</p>
<p>It looks like this:<br />
<a href="http://www.dom111.co.uk/blog/wp-content/2010/09/sequel-pro-twilight.jpg"><img class="alignnone size-full wp-image-253" title="SequelPro Twilight Theme" src="http://www.dom111.co.uk/blog/wp-content/2010/09/sequel-pro-twilight.jpg" alt="" width="332" height="285" /></a></p>
<p><a href="/files/sequelpro/twilight.tar.gz">Download it here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/sequelpro-twilight-theme/252/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

