<?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>Strong as an Ox &#187; javascript</title>
	<atom:link href="http://www.strongasanox.co.uk/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.strongasanox.co.uk</link>
	<description>Ian Oxley - ASP.NET, PHP, JavaScript and Web Applications</description>
	<lastBuildDate>Tue, 24 Aug 2010 22:54:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Moving Greasemonkey Scripts To GitHub</title>
		<link>http://www.strongasanox.co.uk/2010/08/18/moving-greasemonkey-scripts-to-github/</link>
		<comments>http://www.strongasanox.co.uk/2010/08/18/moving-greasemonkey-scripts-to-github/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 21:05:57 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[greasemonkey]]></category>

		<guid isPermaLink="false">http://www.strongasanox.co.uk/2010/08/18/moving-greasemonkey-scripts-to-github/</guid>
		<description><![CDATA[Recently I made a few amends to some Greasemonkey scripts I wrote a while back and, since I&#8217;ve been using git quite a bit recently, it made sense to me to move my Greasemonkey scripts onto GitHub. So I did And here they are: google-search-shortcut open-selected-links stackoverflow-tag-cloud straight-to-reader]]></description>
			<content:encoded><![CDATA[<p>Recently I made a few amends to some Greasemonkey scripts I wrote a while back and, since I&#8217;ve been <a href="http://www.strongasanox.co.uk/2010/04/27/using-git/">using git</a> quite a bit recently, it made sense to me to move my Greasemonkey scripts onto GitHub.</p>
<p>So I did <img src='http://www.strongasanox.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  And here they are:</p>
<ul>
<li><a href="http://github.com/ianoxley/google-search-shortcut">google-search-shortcut</a></li>
<li><a href="http://github.com/ianoxley/open-selected-links">open-selected-links</a></li>
<li><a href="http://github.com/ianoxley/stackoverflow-tag-cloud">stackoverflow-tag-cloud</a></li>
<li><a href="http://github.com/ianoxley/straight-to-reader">straight-to-reader</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.strongasanox.co.uk/2010/08/18/moving-greasemonkey-scripts-to-github/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Greasemonkey Open Selected Links Script</title>
		<link>http://www.strongasanox.co.uk/2010/06/01/greasemonkey-open-selected-links-script/</link>
		<comments>http://www.strongasanox.co.uk/2010/06/01/greasemonkey-open-selected-links-script/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 21:02:24 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[greasemonkey]]></category>

		<guid isPermaLink="false">http://www.strongasanox.co.uk/?p=378</guid>
		<description><![CDATA[I hadn&#8217;t done any monkeying around with Greasemonkey for a while until the other day when I came up with this script: http://github.com/ianoxley/open-selected-links Any links that are present in the selected text will be opened on the mouseup event, except for the Cached and Similar links you get in Google search results. If you&#8217;ve got [...]]]></description>
			<content:encoded><![CDATA[<p>I hadn&#8217;t done any monkeying around with <a href="https://addons.mozilla.org/en-US/firefox/addon/748/">Greasemonkey</a> for a while until the other day when I came up with this script: <a href="http://github.com/ianoxley/open-selected-links">http://github.com/ianoxley/open-selected-links</a></p>
<p>Any links that are present in the selected text will be opened on the <code>mouseup</code> event, except for the <strong>Cached</strong> and <strong>Similar</strong> links you get in Google search results.</p>
<p>If you&#8217;ve got and suggestions for improvements, let me know in the comments <img src='http://www.strongasanox.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h3>UPDATE</h3>
<p>The script has been updated so that you now have to press the <code>Ctrl</code> or <code>Cmd</code> key while selecting the text, in the same way that you would <code>Ctrl / Cmd + click</code> to open a link in a new tab.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.strongasanox.co.uk/2010/06/01/greasemonkey-open-selected-links-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript WebKit Notifications API Demo With Flickr and JSONP</title>
		<link>http://www.strongasanox.co.uk/2010/04/24/javascript-webkit-notifications-api-demo-with-flickr-and-jsonp/</link>
		<comments>http://www.strongasanox.co.uk/2010/04/24/javascript-webkit-notifications-api-demo-with-flickr-and-jsonp/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 21:12:52 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[jsonp]]></category>
		<category><![CDATA[webkit notifications api]]></category>

		<guid isPermaLink="false">http://www.strongasanox.co.uk/?p=324</guid>
		<description><![CDATA[I&#8217;ve been playing around with the JavaScript Notifications API recently &#8211; or to be a bit more specific the WebKit Notifications API &#8211; and put together this little demo using Flickr and JSONP: You search Flickr by entering a tag The JSONP callback function then displays the first few photos returned using the Notifications API [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing around with the JavaScript <a href="http://www.chromium.org/developers/design-documents/desktop-notifications/api-specification">Notifications API</a> recently &#8211; or to be a bit more specific the WebKit Notifications API &#8211; and put together <a href="http://lab.strongasanox.co.uk/notify.html">this little demo</a> using Flickr and JSONP:</p>
<ol>
<li>You search Flickr by entering a tag</li>
<li>The JSONP callback function then displays the first few photos returned using the Notifications API</li>
<li>Each notification is cancelled after 10 seconds (there is no Dismiss button, like there is when you use the API on <code>localhost</code>)</li>
</ol>
<p>You&#8217;ll need to grant notification permissions first to be able to view the notifications &#8211; you should see an info bar like the one below the first time you click on <code>Search</code>:</p>
<p><a href="http://www.strongasanox.co.uk/wp-content/uploads/2010/04/Screenshot-Webkit-Notifications-API-request-permission1.png"><img class="size-medium wp-image-331 alignnone" title="WebKit Notifications API requestPermission screenshot" src="http://www.strongasanox.co.uk/wp-content/uploads/2010/04/Screenshot-Webkit-Notifications-API-request-permission1-300x66.png" alt="WebKit Notifications API requestPermission screenshot" width="300" height="66" /></a></p>
<p>After that, you should see the notifications stack up in the bottom right-hand corner of your screen:</p>
<p><a href="http://www.strongasanox.co.uk/wp-content/uploads/2010/04/Screenshot-notifications1.png"><img class="alignnone size-medium wp-image-339" title="Screenshot of the notifications" src="http://www.strongasanox.co.uk/wp-content/uploads/2010/04/Screenshot-notifications1-300x168.png" alt="Screenshot of the notifications" width="300" height="168" /></a></p>
<p>At the time of writing, you&#8217;ll need to be using Google Chrome for the demo to work (although I&#8217;m pretty sure that support for the Notifications API in Safari is imminent).</p>
<p>And, as an aside, I managed to throw a bit of HTML 5 into the demo as well with some <a href="http://dev.w3.org/html5/spec/Overview.html#autofocusing-a-form-control">autofocus</a> and <a href="http://dev.w3.org/html5/spec/Overview.html#the-placeholder-attribute">placeholder</a> attributes on the <code>&lt;input type="text" /&gt;</code> field, just for good measure <img src='http://www.strongasanox.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.strongasanox.co.uk/2010/04/24/javascript-webkit-notifications-api-demo-with-flickr-and-jsonp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Simple jQuery Print Page Plugin</title>
		<link>http://www.strongasanox.co.uk/2010/02/26/a-simple-jquery-print-page-plugin/</link>
		<comments>http://www.strongasanox.co.uk/2010/02/26/a-simple-jquery-print-page-plugin/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 20:25:22 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.strongasanox.co.uk/?p=298</guid>
		<description><![CDATA[The other day I was after a really simple way to add a print page link to a page to, well, er, print it.  So I came up with my jQuery Print Page plugin and stuck it on GitHub with a demo page: http://github.com/ianoxley/jqueryprintpage This really is nothing fancy: it&#8217;s just a convenient way of adding [...]]]></description>
			<content:encoded><![CDATA[<p>The other day I was after a really simple way to add a <em>print page</em> link to a page to, well, er, print it.  So I came up with my jQuery Print Page plugin and stuck it on GitHub with a demo page: <a href="http://github.com/ianoxley/jqueryprintpage">http://github.com/ianoxley/jqueryprintpage</a></p>
<p>This really is nothing fancy: it&#8217;s just a convenient way of adding an &lt;a&gt; tag plus an event-handler to a page to print it. Using it is as simple as, well, using File -&gt; Print. But you can&#8217;t style the File menu with <abbr title="Cascading Style Sheets">CSS</abbr> so this is much more fun <img src='http://www.strongasanox.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.strongasanox.co.uk/2010/02/26/a-simple-jquery-print-page-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lorem Ipsum Bookmarklet</title>
		<link>http://www.strongasanox.co.uk/2009/10/16/lorem-ipsum-bookmarklet/</link>
		<comments>http://www.strongasanox.co.uk/2009/10/16/lorem-ipsum-bookmarklet/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 19:57:18 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[devtools]]></category>
		<category><![CDATA[bookmarklet]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.strongasanox.co.uk/?p=225</guid>
		<description><![CDATA[I often use a couple of paragraphs of Lipsum when testing forms containing &#60;textarea&#62; tags and have had this bookmarklet I cobbled together sitting on my Bookmarks Toolbar for a while now. Anyway, I thought it might be fun to hook it up to a HTML 5 form to let you customise how many paragraphs [...]]]></description>
			<content:encoded><![CDATA[<p>I often use a couple of paragraphs of Lipsum when testing forms containing <code>&lt;textarea&gt;</code> tags and have had this bookmarklet I cobbled together sitting on my Bookmarks Toolbar for a while now.</p>
<p>Anyway, I thought it might be fun to hook it up to a HTML 5 form to let you customise how many paragraphs of Lipsum you want each time you click it. So that&#8217;s what I went and did:</p>
<p><a href="http://www.strongasanox.co.uk/lorem-ipsum-bookmarklet-generator/">Lorem Ipsum Bookmarklet Generator</a></p>
<p>Hopefully it&#8217;ll save you a few mouse clicks next time you&#8217;re testing some forms.</p>
<p>(Please note that the form used in the generator uses the <code>&lt;input type="range" /&gt;</code> HTML 5 tag which currently works best in the <a href="http://www.opera.com/browser/">latest version of Opera</a>. <abbr title="Your mileage may vary"> YMMV</abbr> when using other browsers).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.strongasanox.co.uk/2009/10/16/lorem-ipsum-bookmarklet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Form Focus Plugin Released</title>
		<link>http://www.strongasanox.co.uk/2008/06/09/jquery-form-focus-plugin-released/</link>
		<comments>http://www.strongasanox.co.uk/2008/06/09/jquery-form-focus-plugin-released/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 21:49:42 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://ianoxley.wordpress.com/?p=21</guid>
		<description><![CDATA[I have released the first version of my jQuery Form Focus plugin. This lets you set the initial focus on any form element but is careful not to set the focus if the user has already started filling in the form. To use it you call something like: $('#username').formFocus(); $('form input:first').formFocus(); $('form#options input[type="checkbox"]:first').formFocus(); Hope you [...]]]></description>
			<content:encoded><![CDATA[<p>I have released the first version of my <a href="http://plugins.jquery.com/project/FormFocus">jQuery Form Focus plugin</a>. This lets you set the initial focus on any form element but is careful not to set the focus if the user has already <a href="http://www.themaninblue.com/writing/perspective/2005/10/27/">started filling in the form</a>. To use it you call something like:</p>
<p><code>$('#username').formFocus();<br />
$('form input:first').formFocus();<br />
$('form#options input[type="checkbox"]:first').formFocus();</code></p>
<p>Hope you find it useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.strongasanox.co.uk/2008/06/09/jquery-form-focus-plugin-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenSearch Added to Unobtrusive JavaScript Google Co-op Search</title>
		<link>http://www.strongasanox.co.uk/2008/02/05/opensearch-added-to-unobtrusive-javascript-google-co-op-search/</link>
		<comments>http://www.strongasanox.co.uk/2008/02/05/opensearch-added-to-unobtrusive-javascript-google-co-op-search/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 21:06:52 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[google co-op]]></category>

		<guid isPermaLink="false">http://ianoxley.wordpress.com/?p=8</guid>
		<description><![CDATA[I have added OpenSearch to my Google Co-op Search Engine Unobtrusive JavaScript. Now you use the search engine in OpenSearch aware browsers you can add it to the browser&#8217;s search box.]]></description>
			<content:encoded><![CDATA[<p>I have added <a HREF="http://www.opensearch.org">OpenSearch</a> to my Google Co-op Search Engine <a HREF="http://www.strongasanox.co.uk/http://www.strongasanox.co.uk/unobtrusivejavascript/">Unobtrusive JavaScript</a>. Now you use the search engine in <a HREF="http://www.getfirefox.com">OpenSearch aware browsers</a> you can add it to the browser&#8217;s search box.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.strongasanox.co.uk/2008/02/05/opensearch-added-to-unobtrusive-javascript-google-co-op-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unobtrusive JavaScript</title>
		<link>http://www.strongasanox.co.uk/2007/12/19/javascript-search/</link>
		<comments>http://www.strongasanox.co.uk/2007/12/19/javascript-search/#comments</comments>
		<pubDate>Wed, 19 Dec 2007 21:13:31 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[google co-op]]></category>

		<guid isPermaLink="false">http://ianoxley.wordpress.com/2007/12/19/javascript-search/</guid>
		<description><![CDATA[I have been playing around with Google Co-op recently and have created Unobtrusive JavaScript: a custom search engine that focuses on unobtrusive JavaScript knowledge and tips from leading JavaScript experts. Please give it a try and let me know what you think.]]></description>
			<content:encoded><![CDATA[<p>I have been playing around with <a href="http://www.google.com/coop/">Google Co-op</a> recently and have created <a href="http://www.strongasanox.co.uk/javascriptsearch/">Unobtrusive JavaScript</a>: a custom search engine that focuses on unobtrusive JavaScript knowledge and tips from leading JavaScript experts. Please give it a try and let me know what you think.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.strongasanox.co.uk/2007/12/19/javascript-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
