<?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>Tom Coote &#187; JavaScript</title>
	<atom:link href="http://tomcoote.co.uk/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://tomcoote.co.uk</link>
	<description>An ace web developer!</description>
	<lastBuildDate>Sun, 08 Jan 2012 14:18:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Writing functions inside loops in JavaScript</title>
		<link>http://tomcoote.co.uk/javascript/writing-functions-inside-loops-in-javascript/</link>
		<comments>http://tomcoote.co.uk/javascript/writing-functions-inside-loops-in-javascript/#comments</comments>
		<pubDate>Sat, 08 Oct 2011 16:57:58 +0000</pubDate>
		<dc:creator>Tom Coote</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://tomcoote.co.uk/?p=669</guid>
		<description><![CDATA[
			
				
			
		
I&#8217;ve created a short video to help explain what the issues are when writing JavaScript functions inside loops and how to use function scope to solve those issues. Enjoy.
Full screen it in order to read the code.

]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-top:10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftomcoote.co.uk%2Fjavascript%2Fwriting-functions-inside-loops-in-javascript%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftomcoote.co.uk%2Fjavascript%2Fwriting-functions-inside-loops-in-javascript%2F&amp;source=cootetom&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I&#8217;ve created a short video to help explain what the issues are when writing JavaScript functions inside loops and how to use function scope to solve those issues. Enjoy.</p>
<p><em>Full screen it in order to read the code.</em></p>
<p><iframe src="http://www.screenr.com/embed/jCOs" width="650" height="396" frameborder="0"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://tomcoote.co.uk/javascript/writing-functions-inside-loops-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Code To Give Users Time To Read Feedback</title>
		<link>http://tomcoote.co.uk/javascript/code-to-give-users-time-to-read-feedback/</link>
		<comments>http://tomcoote.co.uk/javascript/code-to-give-users-time-to-read-feedback/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 13:42:58 +0000</pubDate>
		<dc:creator>Tom Coote</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://tomcoote.co.uk/?p=618</guid>
		<description><![CDATA[
			
				
			
		
I&#8217;ve blogged before about giving users of a web application feedback on the page whilst they wait for something to load and also about slowing down the responses from AJAX requests in order to give those users time to fully read and understand that feedback. I&#8217;ve recently built some more code to help achieve this. [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-top:10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftomcoote.co.uk%2Fjavascript%2Fcode-to-give-users-time-to-read-feedback%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftomcoote.co.uk%2Fjavascript%2Fcode-to-give-users-time-to-read-feedback%2F&amp;source=cootetom&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I&#8217;ve blogged before about giving users of a web application <a href="/ui/loading-feedback/">feedback</a> on the page whilst they wait for something to load and also about <a href="/ui/slow-down-your-web-site/">slowing down</a> the responses from AJAX requests in order to give those users time to fully read and understand that feedback. I&#8217;ve recently built some more code to help achieve this. This is a jQuery extension.</p>
<p>If you&#8217;re going to use AJAX to load some content into the page as the user requests it then it&#8217;s a good idea to tell the user what is happening. This is often done with some sort of message on the page saying something like &#8220;stuff is loading here, won&#8217;t be long&#8221;. Also it&#8217;s a good idea for the round trip to the server and back to be quick because you don&#8217;t want your users to be waiting all day long. However, if the round trip is less than half a second then the user probably didn&#8217;t get time to read that message and, depending on the scenario, this could lead to an un-happy web experience. </p>
<p>So I have some code that extends the jQuery AJAX &#8216;post&#8217; and &#8216;get&#8217; functions so that we can invoke them but ensure that our success callback function isn&#8217;t invoked until at east the N number of milliseconds that we have set have passed.</p>
<p>So the process is as follows:</p>
<ul>
<li>User clicks a button to request some information.</li>
<li>JavaScript is called and immediately puts some sort of loading message on to the page.</li>
<li>A post or get request is made using my extension and is asked to wait at least 500 milliseconds before the success callback function is invoked.</li>
<li>If the request takes less than 500 milliseconds then the remainder is set to pass before invoking the success function. If the request takes longer than 500 milliseconds then the success function is invoked as soon as the request returns.</li>
<li>The success function removes the loading message from the page and replaces it with the content the user asked for.</li>
</ul>
<p>This ensures that the user had time to understand the feedback on the page but also ensures the data they requested get&#8217;s displayed to them as soon as possible after.</p>
<p>Check out the <a href="/wp-content/CodeBank/Demos/requestWithTimeout/test.html">demo page</a> to see this working.<br />
<a href="/wp-content/CodeBank/Downloads/requestWithTimeout.zip">Download</a> the source to start using it yourself.</p>
]]></content:encoded>
			<wfw:commentRss>http://tomcoote.co.uk/javascript/code-to-give-users-time-to-read-feedback/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SimpleModal version 2</title>
		<link>http://tomcoote.co.uk/javascript/simplemodal-version-2/</link>
		<comments>http://tomcoote.co.uk/javascript/simplemodal-version-2/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 16:13:20 +0000</pubDate>
		<dc:creator>Tom Coote</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://tomcoote.co.uk/?p=593</guid>
		<description><![CDATA[
			
				
			
		
I have just updated my SimpleModal JavaScript component and released it as version 2. You can read about the script and download it from it&#8217;s page here.
I&#8217;ve just improved it a little to better support newer browsers and tested in the latest jQuery version.
I&#8217;d like to mention that I&#8217;ve been using this script in all [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-top:10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftomcoote.co.uk%2Fjavascript%2Fsimplemodal-version-2%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftomcoote.co.uk%2Fjavascript%2Fsimplemodal-version-2%2F&amp;source=cootetom&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I have just updated my SimpleModal JavaScript component and released it as version 2. You can read about the script and download it from it&#8217;s page <a href="/code-bank/simple-modal/">here</a>.</p>
<p>I&#8217;ve just improved it a little to better support newer browsers and tested in the latest jQuery version.</p>
<p>I&#8217;d like to mention that I&#8217;ve been using this script in all of my web projects for years now. It&#8217;s simplicity makes it so flexible which I think is why it&#8217;s stood the test of time for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://tomcoote.co.uk/javascript/simplemodal-version-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Input Character Counter</title>
		<link>http://tomcoote.co.uk/javascript/input-character-counter/</link>
		<comments>http://tomcoote.co.uk/javascript/input-character-counter/#comments</comments>
		<pubDate>Sun, 22 May 2011 16:02:08 +0000</pubDate>
		<dc:creator>Tom Coote</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://tomcoote.co.uk/?p=571</guid>
		<description><![CDATA[
			
				
			
		
I built this whilst watching Britain&#8217;s Got Talent yesterday. I wasn&#8217;t enjoying the show to much. It&#8217;s a simple jQuery plugin that you can attach to textarea or input elements which will limit the amount of characters that are allowed for the input and also show a counter in the top right corner to indicate [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-top:10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftomcoote.co.uk%2Fjavascript%2Finput-character-counter%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftomcoote.co.uk%2Fjavascript%2Finput-character-counter%2F&amp;source=cootetom&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I built this whilst watching Britain&#8217;s Got Talent yesterday. I wasn&#8217;t enjoying the show to much. It&#8217;s a simple jQuery plugin that you can attach to textarea or input elements which will limit the amount of characters that are allowed for the input and also show a counter in the top right corner to indicate the character count.</p>
<p>All you need is the CSS and JavaScript on your page then attach it to something like this;</p>
<pre class="qoate-code">
$(textarea).charCount(100);
</pre>
<p>Visit the <a href="http://tomcoote.co.uk/wp-content/CodeBank/Demos/CharCount/index.html">demo page</a> to have a go or <a href="http://tomcoote.co.uk/wp-content/CodeBank/Downloads/jQuery_charCount_1_1.zip">download the source</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tomcoote.co.uk/javascript/input-character-counter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ajax HTML5 in IE</title>
		<link>http://tomcoote.co.uk/javascript/ajax-html5-in-ie/</link>
		<comments>http://tomcoote.co.uk/javascript/ajax-html5-in-ie/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 20:31:25 +0000</pubDate>
		<dc:creator>Tom Coote</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://tomcoote.co.uk/?p=531</guid>
		<description><![CDATA[
			
				
			
		
We have recently moved towards the use of HTML 5 at my work. For those who have done the same you will already know of the extra work you need to do before HTML 5 will work in Internet Explorer browsers. The way we did it, which is probably the way most people do it, [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-top:10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftomcoote.co.uk%2Fjavascript%2Fajax-html5-in-ie%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftomcoote.co.uk%2Fjavascript%2Fajax-html5-in-ie%2F&amp;source=cootetom&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>We have recently moved towards the use of HTML 5 at my work. For those who have done the same you will already know of the extra work you need to do before HTML 5 will work in Internet Explorer browsers. The way we did it, which is probably the way most people do it, was to add the <a href="http://code.google.com/p/html5shiv/">html5shiv</a> script onto the web page if IE browsers are being used. This script will get you up and running unless you need to AJAX HTML 5 content into the page. That content will not get parsed and so will not behave properly. The answer to that is another script called <a href="http://jdbartlett.github.com/innershiv/">innershiv</a> which provides a function to pass HTML 5 content to and receive that content back parsed ready for IE browsers.</p>
<p>Both of these scripts are really useful and for most people they are pretty much the difference between making use of HTML 5 or not. The one problem that remains is all the extra work needed to run HTML content through the innershiv function at the end of every single AJAX request in IE browsers. It&#8217;s a lot of work! So for those of you who use jQuery I can show you how to tell jQuery to run all content from AJAX requests through innershiv automatically for IE so that you don&#8217;t have to do any more coding than you normally would. </p>
<pre class="qoate-code">
&lt;!--[if lt IE 9]&gt;
&lt;script type="text/javascript"&gt;
jQuery.ajaxSetup({
	dataFilter: function(data, dataType) {
		if (typeof innerShiv === 'function' &#038;&#038; dataType === 'html') {
			return innerShiv(data);
		}
		else {
			return data;
		}
	}
});
&lt;/script&gt;
&lt;![endif]--&gt;
</pre>
<p>This script will work if the browser version is IE8 or lower and relies on jQuery, html5shiv and innershiv all being on the page. </p>
<p>I haven&#8217;t tested this code a great deal so far, it&#8217;s something I built today. It appears to work very well on the web site I&#8217;m currently building. All comments welcome as always!  </p>
]]></content:encoded>
			<wfw:commentRss>http://tomcoote.co.uk/javascript/ajax-html5-in-ie/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>jQuery JSON Suggest/Search Box v2</title>
		<link>http://tomcoote.co.uk/javascript/jquery-json-suggestsearch-box-v2/</link>
		<comments>http://tomcoote.co.uk/javascript/jquery-json-suggestsearch-box-v2/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 19:52:24 +0000</pubDate>
		<dc:creator>Tom Coote</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://tomcoote.co.uk/?p=494</guid>
		<description><![CDATA[
			
				
			
		
I have updated my previous auto suggest box plugin for jQuery. It has been a long time coming, the improvements are a combination of feedback received by others and things I have wanted to do for a while myself. 
The main points of improvement are;

Updated for jQuery v1.4.x
Support for jQuery themes. Takes on the same [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-top:10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftomcoote.co.uk%2Fjavascript%2Fjquery-json-suggestsearch-box-v2%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftomcoote.co.uk%2Fjavascript%2Fjquery-json-suggestsearch-box-v2%2F&amp;source=cootetom&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I have updated my <a href="http://tomcoote.co.uk/code-bank/jquery-json-suggestsearch-box/">previous</a> auto suggest box plugin for jQuery. It has been a long time coming, the improvements are a combination of feedback received by others and things I have wanted to do for a while myself. </p>
<p>The main points of improvement are;</p>
<ul>
<li>Updated for jQuery v1.4.x</li>
<li>Support for jQuery themes. Takes on the same styling from themes for jQuery&#8217;s own autocomplete ui component. </li>
<li>Better support for being able to use data requested from a URL.</li>
<li>Improvements in the UI for navigating the results set.</li>
</ul>
<p>jQuery have their own <a href="http://jqueryui.com/demos/autocomplete/">autocomplete</a> ui widget which I used for a few projects to see if it suited me better than my own. I do really like jQuery&#8217;s autocomplete widget as it pretty much does everything that mine does! The only thing extra with mine are a few added options, images that can more easily be displayed in each result and separated markup for extra, non searched, text in each result. For me that was enough to do a few upgrades to my own plugin to bring it more up to date. </p>
<p>So to get the best of both worlds I have updated my plugin to an all new version 2. There are some differences in the setup of the plugin so go check out the <a href="http://tomcoote.co.uk/wp-content/CodeBank/Demos/JSONSuggestBox2/demo.html">demo</a> page to see examples. Most often it will come down to these two choices;</p>
<pre class="qoate-code">
$('input#suggestBox').jsonSuggest({data: jsonData});

or

$('input#suggestBox').jsonSuggest({url: 'http://mysite.com/get_some_data.json'});
</pre>
<p>Here are all the options when setting up the plugin;</p>
<table class="jQueryOptionsTable">
<thead>
<tr>
<th>Name</th>
<th>Default</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>url</td>
<td>&#8221;</td>
<td>A URL that will return a JSON response. Called via $.getJSON, it is passed a data dictionary containing the user typed search phrase. It must return a JSON string that represents the array of results to display.</td>
</tr>
<tr>
<td>data</td>
<td>[]</td>
<td>An array or JSON string representation of an array of data to search through. <a href="http://tomcoote.co.uk/wp-content/CodeBank/Demos/JSONSuggestBox2/testData/testData.js">See Examples.</a></td>
</tr>
<tr>
<td>minCharacters</td>
<td>1</td>
<td>Number of characters that the input should accept before running a search.</td>
</tr>
<tr>
<td>maxResults</td>
<td>undefined</td>
<td>If set then no more results than this number will be found.</td>
</tr>
<tr>
<td>wildCard</td>
<td>&#8221;</td>
<td>A character to be used as a match all wildcard when searching. Leaving empty will mean results are matched inside strings but if a wildCard is present then results are matched from the beginning of strings.</td>
</tr>
<tr>
<td>caseSensitive</td>
<td>false</td>
<td>True if the filter search&#8217;s are to be case sensitive.</td>
</tr>
<tr>
<td>notCharacter</td>
<td>!</td>
<td>The character to use at the start of any search text to specify that the results should NOT contain the following text.</td>
</tr>
<tr>
<td>maxHeight</td>
<td>350</td>
<td>This is the maximum height that the results box can reach before scroll bars are shown instead of getting taller.</td>
</tr>
<tr>
<td>width</td>
<td>undefined</td>
<td>If set this will become the width of the results box else the box will be the same width as the input.</td>
</tr>
<tr>
<td>highlightMatches</td>
<td>true</td>
<td>This will add strong tags around the text that matches the search text in each result.</td>
</tr>
<tr>
<td>onSelect</td>
<td>undefined</td>
<td>Function that gets called once a result has been selected, gets passed in the object version of the result as specified in the JSON data.</td>
</tr>
</tbody>
</table>
<p><a href="http://tomcoote.co.uk/wp-content/CodeBank/Downloads/JSONSuggestBox2.zip">Download the source</a><br />
<a href="http://plugins.jquery.com/project/jsonsuggest">Visit plugin page at jQuery</a><br />
<a href="http://tomcoote.co.uk/wp-content/CodeBank/Demos/JSONSuggestBox2/demo.html">Demo page</a></p>
<p>Tested to work in the following browsers;</p>
<ul>
<li>IE8, IE 7 &#038; 6</li>
<li>FireFox</li>
<li>Opera</li>
<li>Chrome</li>
<li>Safari</li>
</li>
]]></content:encoded>
			<wfw:commentRss>http://tomcoote.co.uk/javascript/jquery-json-suggestsearch-box-v2/feed/</wfw:commentRss>
		<slash:comments>46</slash:comments>
		</item>
		<item>
		<title>Block Goggles From Your Site</title>
		<link>http://tomcoote.co.uk/javascript/block-goggles-from-your-site/</link>
		<comments>http://tomcoote.co.uk/javascript/block-goggles-from-your-site/#comments</comments>
		<pubDate>Mon, 14 Feb 2011 23:42:19 +0000</pubDate>
		<dc:creator>Tom Coote</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://tomcoote.co.uk/?p=482</guid>
		<description><![CDATA[
			
				
			
		
Have you used Goggles? If not then go try it, have a lot of fun, then come back to read this blog post when you&#8217;re finished.
Goggles is great fun but good intentions aside the thing attracts a lot of abuse. For example, visit some of the popular sites on the internet then switch on Goggles [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-top:10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftomcoote.co.uk%2Fjavascript%2Fblock-goggles-from-your-site%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftomcoote.co.uk%2Fjavascript%2Fblock-goggles-from-your-site%2F&amp;source=cootetom&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Have you used <a href="http://goggles.sneakygcr.net/">Goggles</a>? If not then go try it, have a lot of fun, then come back to read this blog post when you&#8217;re finished.</p>
<p>Goggles is great fun but good intentions aside the thing attracts a lot of abuse. For example, visit some of the popular sites on the internet then switch on Goggles and you&#8217;ll soon see the hatred that people express while safely masked away. </p>
<p>Here is a script that you can happily place on your web sites to block Goggles if you happen to manage a web site that might attract such abuse.</p>
<pre class="qoate-code">
(function() {
	window.setInterval(function() {
		if (typeof activateGoggles === 'function') {
                        activateGoggles = undefined;
			location.reload();
		}
	}, 500);
}());
</pre>
]]></content:encoded>
			<wfw:commentRss>http://tomcoote.co.uk/javascript/block-goggles-from-your-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML 5 Video Tagging</title>
		<link>http://tomcoote.co.uk/ui/html-5-video-tagging/</link>
		<comments>http://tomcoote.co.uk/ui/html-5-video-tagging/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 15:30:10 +0000</pubDate>
		<dc:creator>Tom Coote</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://tomcoote.co.uk/?p=292</guid>
		<description><![CDATA[
			
				
			
		
I&#8217;ve been reading about HTML 5 and the new JavaScript API&#8217;s for it just recently. I liked the new video stuff so thought I&#8217;d have a go at doing something with it. So as a bit of an experiment I have created a pretty simple video tagging app. 

It allows you to click in the [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-top:10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftomcoote.co.uk%2Fui%2Fhtml-5-video-tagging%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftomcoote.co.uk%2Fui%2Fhtml-5-video-tagging%2F&amp;source=cootetom&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I&#8217;ve been reading about HTML 5 and the new JavaScript API&#8217;s for it just recently. I liked the new video stuff so thought I&#8217;d have a go at doing something with it. So as a bit of an experiment I have created a pretty simple video tagging app. </p>
<p><img src="http://tomcoote.co.uk/wp-content/uploads/2010/09/video_tagging.png" alt="Video Tagging Screen Shot" width="740" height="275" class="aligncenter size-full wp-image-291" /></p>
<p>It allows you to click in the video to tag an area of the screen at a particular playback time. You can then click the list of tags to go see where they are in the video.</p>
<p>As I said, it&#8217;s just an experiment and at the moment only works in chrome, firefox and opera. It would probably also work in safari apart from I didn&#8217;t have that video encoded in H.264. <a href="http://tomcoote.co.uk/demos/HTML5videotagging/index.html">Go have a play!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tomcoote.co.uk/ui/html-5-video-tagging/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SVG Sketch Update</title>
		<link>http://tomcoote.co.uk/javascript/svg-sketch-update/</link>
		<comments>http://tomcoote.co.uk/javascript/svg-sketch-update/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 19:41:31 +0000</pubDate>
		<dc:creator>Tom Coote</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[SVG]]></category>

		<guid isPermaLink="false">http://tomcoote.co.uk/?p=272</guid>
		<description><![CDATA[
			
				
			
		
Since I posted last about the SVG Sketch page I have added some new features to it. I added the ability to post your sketch and then view it along with other peoples sketches in the gallery. I just thought it would be fun to be able to see sketches that others have drawn. So [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-top:10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftomcoote.co.uk%2Fjavascript%2Fsvg-sketch-update%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftomcoote.co.uk%2Fjavascript%2Fsvg-sketch-update%2F&amp;source=cootetom&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Since I posted last about the SVG Sketch page I have added some new features to it. I added the ability to post your sketch and then view it along with other peoples sketches in the gallery. I just thought it would be fun to be able to see sketches that others have drawn. So far it&#8217;s just been a few of us at work posting sketches when we&#8217;re procrastinating!</p>
<p>Take a look: <a href="http://svgsketch.tomcoote.co.uk/">svgsketch.tomcoote.co.uk</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tomcoote.co.uk/javascript/svg-sketch-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SVG Sketch</title>
		<link>http://tomcoote.co.uk/javascript/svg-sketch/</link>
		<comments>http://tomcoote.co.uk/javascript/svg-sketch/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 22:44:42 +0000</pubDate>
		<dc:creator>Tom Coote</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[SVG]]></category>

		<guid isPermaLink="false">http://tomcoote.co.uk/?p=259</guid>
		<description><![CDATA[
			
				
			
		
We have been playing (eh hem&#8230; working) with SVG in the office just recently for a client. I can&#8217;t really talk about the client work we are doing apart from saying it&#8217;s pretty damn cool. Besides that, we have been dreaming up some other playful idea&#8217;s using SVG and I&#8217;m going to show one of [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-top:10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftomcoote.co.uk%2Fjavascript%2Fsvg-sketch%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftomcoote.co.uk%2Fjavascript%2Fsvg-sketch%2F&amp;source=cootetom&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>We have been playing (eh hem&#8230; working) with SVG in the office just recently for a client. I can&#8217;t really talk about the client work we are doing apart from saying it&#8217;s pretty damn cool. Besides that, we have been dreaming up some other playful idea&#8217;s using SVG and I&#8217;m going to show one of them here. <a href="http://stevefitzpatrick.co.uk/" target="_blank">Steve</a> initially came up with this idea along with the phrase &#8220;get it done&#8221; followed by &#8220;is it done yet?&#8221; a few seconds later.</p>
<p>It&#8217;s an SVG sketch game. I built it using the wonderful <a href="http://raphaeljs.com/" target="_blank">Raphael</a> JavaScript library which enables you to dynamically build SVG elements in a document using JavaScript.<br />
<a href="http://tomcoote.co.uk/demos/svgSketch/svgSketch.html"><img src="http://tomcoote.co.uk/wp-content/uploads/2010/06/still_produces_shit_drawings.png" alt="" title="still_produces_shit_drawings" width="700" class="aligncenter size-full wp-image-262" /></a></p>
<p>It has some really cool touches like having to shake it to clean away your current drawing. You can use your keyboard arrow keys or click the buttons with your mouse to work it. There isn&#8217;t really much more to say other than to go and have a <a href="http://tomcoote.co.uk/demos/svgSketch/svgSketch.html">look at it</a>. Check out the JavaScript if you&#8217;re interested in knowing how it&#8217;s working.</p>
]]></content:encoded>
			<wfw:commentRss>http://tomcoote.co.uk/javascript/svg-sketch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

