<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DOM Scripting Blog</title>
		<link>http://www.domscripting.com/blog/</link>
		<description>A place for thoughts and musings on JavaScript and the Document Object Model.</description>
		<language>en</language>
		<item>
			<title>Downloading code samples</title>
			<link>http://www.domscripting.com/blog/display/128</link>
			<description><![CDATA[<p>Annoyingly, the original publishers of <cite>DOM Scripting</cite>—Friends of ED—have decided to demolish their website. That’s a shame because in the book, that’s where I tell people to go to download code samples.</p>

<p>Fortunately, the code samples are still available. They’ve been moved over to <a href="http://www.apress.com/9781430233893">a page on the Apress site</a>, the parent publisher of Friends of ED.</p>

<p>And here’s a direct link to <a href="http://www.apress.com/downloadable/download/sample/sample_id/1155/">a .zip file of the code samples</a>.</p>

<p>Apologies for the inconvenience. I hope there won’t be any further dicking around with the location of the code samples.</p>
]]></description>
			<pubDate>Mon, 25 Jun 2012 15:05:48 GMT</pubDate>
			<guid>http://www.domscripting.com/blog/display/128</guid>
			<comments>http://www.domscripting.com/blog/display/128#comments</comments>
		</item>
		<item>
			<title>Evergreen</title>
			<link>http://www.domscripting.com/blog/display/127</link>
			<description><![CDATA[<p>Dot Net magazine recently asked a number of web workers to name three books that they consider web designers and developers should read. They then compiled the results into <a href="http://www.netmagazine.com/features/top-25-books-web-designers-and-developers">a list of 25 books</a>.</p>

<p>I was surprised to see that <cite>DOM Scripting</cite> was listed at number five. After all, the book was published six years ago. But as <cite class="vcard"><a href="http://www.davidedwardclark.com/" class="fn url">David Edward Clark</a></cite> recently <a href="https://twitter.com/davidedwardc/status/136117132571328513">remarked on Twitter</a>:</p>

<blockquote>
  <p>Finished DOM Scripting for 2nd time in 5 years. Nice to see it on netmag top 25. One of the few programming books thats aged well.</p>
</blockquote>

<p>I think its longevity is due to a deliberate choice I made to avoid mentioning specific browsers as much as possible. There are still one or two points in the book where I make reference to this or that issue with some particular version of Internet Explorer but for the most part the book focuses purely on the standards rather than implementations. I guess that&#8217;s pretty unusual in a book about about a client-side programming language. </p>
]]></description>
			<pubDate>Tue, 15 Nov 2011 17:28:22 GMT</pubDate>
			<guid>http://www.domscripting.com/blog/display/127</guid>
			<comments>http://www.domscripting.com/blog/display/127#comments</comments>
		</item>
		<item>
			<title>Second Edition</title>
			<link>http://www.domscripting.com/blog/display/126</link>
			<description><![CDATA[<p>The <a href="http://friendsofed.com/book.html?isbn=9781430233893">second edition of <cite>DOM Scripting</cite></a> has just been released.</p>

<p>Let me start by clarifying: although my name appears on the cover, I wasn&#8217;t involved in this edition at all. It&#8217;s all the work of <span class="vcard"><a href="http://jeffreysambells.com/" class="fn url">Jeffrey Sambells</a></span>. The publisher&#8212;Friends of ED&#8212;asked me to write the second edition, but I just didn&#8217;t have the time available to commit to it. So it was a certain amount of trepidation that I cracked open the cover of the new release.</p>

<p>I&#8217;m happy to report that all the changes meet with my approval. Well, <em>almost</em> all the changes &#8230;the actual cover is pretty naff. Given the sort of beautiful books produced by small independent publishers like <a href="http://books.alistapart.com/">A Book Apart</a> and <a href="http://fivesimplesteps.com/">Five Simple Steps</a>, I&#8217;m always surprised by the relatively roughshod design displayed by more mainstream publishers.</p>

<p>Anyway, &#8216;though the presentation may leave something to be desired, the contents of the second edition is pretty darn good. The book has been expanded to cover three new areas:</p>

<ul>
<li>HTML5,</li>
<li>Ajax,</li>
<li>Libraries (with an emphasis on jQuery).</li>
</ul>

<p>This widens the scope of the book quite a bit, but happily the emphasis remains on best practices (especially progressive enhancement).</p>

<p>The markup examples have been updated to use the HTML5 doctype&#8212;although occasionally the text still refers to them as XHTML documents.</p>

<p>The Ajax examples are necessarily curt, but they manage to convey much the same message that I was expressing in <a href="http://bulletproofajax.com/">Bulletproof Ajax</a>: don&#8217;t take the existence of Ajax (or JavaScript, for that matter) for granted.</p>

<p>I think my favourite addition to the book is the section on jQuery. It revisits many of the examples from earlier in the book and shows how they can be rewritten more succinctly with jQuery. I think that&#8217;s pretty much the ideal why to get to know a library: first understand how the underlying language works, and then find out how the library can help you save time and effort.</p>

<p>So all the additions to the book are beneficial, in my opinion. There&#8217;s only one thing that has been removed from the original book; the appendix of DOM methods has been replaced with an appendix of jQuery methods. That&#8217;s a bit of a shame. I&#8217;ll see about getting the original appendix published here on this site.</p>

<p>On the whole though, the second edition gets a thumbs-up from me. If you already have the first edition, I&#8217;m not sure it&#8217;s worth getting this new one: you&#8217;d probably be better off with dedicated books on HTML5, Ajax and jQuery. But if you&#8217;re looking for an introductory book on JavaScript, I think the second edition of <cite>DOM Scripting</cite>&#8212;even with its expanded scope&#8212;is as good as it gets.</p>
]]></description>
			<pubDate>Mon, 03 Jan 2011 22:57:35 GMT</pubDate>
			<guid>http://www.domscripting.com/blog/display/126</guid>
			<comments>http://www.domscripting.com/blog/display/126#comments</comments>
		</item>
		<item>
			<title>HTML5 For Web Designers</title>
			<link>http://www.domscripting.com/blog/display/125</link>
			<description><![CDATA[<p><a href="http://domscripting.com/book/"><cite>DOM Scripting</cite></a> was my first book. It came out five years ago. Two years after that, I wrote <a href="http://bulletproofajax.com/"><cite>Bulltetproof Ajax</cite></a>. Now I’ve written a third book.</p>

<p>It’s called <cite>HTML5 for Web Designers</cite> and you can <a href="http://books.alistapart.com/product/html5-for-web-designers" rel="tag">pre-order it now</a> from the greatest publishers on the web, <cite>A Book Apart</cite>. It’s not a long book, by design. It’s got just enough to get you up to speed with the new shininess in HTML5.</p>

<p>For a book about a markup language, there’s a surprising amount of JavaScript-related material in there. The new form enhancements are particularly interesting for the behaviour layer. A lot of common patterns that currently require scripted solutions are beginning to move down the stack into the structural layer: date pickers, sliders, and so on. We’re still going to need scripted solutions for a while yet, but it’s going to be an interesting period of transition.</p>

<p>We’ve been here before. Remember when you needed to use the <code>onmouseover</code> event just to do a simple rollover? Now we just use the <code>:hover</code> pseudo-class in CSS —although I have pointed out six years ago, with tongue firmly in cheek, that this <a href="http://adactio.com/journal/857">crosses the streams</a> of pristine layers of separation.</p>

<p>This is how technology evolves. Common patterns that require a programming solution eventually get a declarative implemenation. We’re seeing it in CSS with animation and we’re seeing it in HTML5 with form controls.</p>

<p>Does that make DOM Scripting obsolete? Far from it. Instead we can stop using JavaScript to reinvent the wheel, recreating patterns that thousands of others have already implemented, and instead start using the technology to solve problems specific to our own content.</p>

<p>My first book, <cite>DOM Scripting</cite> was published in 2005. It opens with the words:</p>

<blockquote>
  <p>This is an exciting time to be a web designer.</p>
</blockquote>

<p>That’s even more true in 2010, thanks to HTML5. In <a href="http://books.alistapart.com/"><cite>HTML5 for Web Designers</cite></a>, I’m sharing my excitement.</p>
]]></description>
			<pubDate>Thu, 06 May 2010 12:55:37 GMT</pubDate>
			<guid>http://www.domscripting.com/blog/display/125</guid>
			<comments>http://www.domscripting.com/blog/display/125#comments</comments>
		</item>
		<item>
			<title>One point four</title>
			<link>http://www.domscripting.com/blog/display/124</link>
			<description><![CDATA[<p>The latest version of <a href="http://jquery.com/">jQuery</a> has been released, just in time for the framework&#8217;s fourth birthday. <a href="http://jquery14.com/day-01/jquery-14">Version 1.4</a> looks like a speedy improvement on its predecessors.</p>

<p>If you have an iPhone or an iPod Touch, be sure to check out this very nifty <a href="http://www.mrspeaker.net/2010/01/14/jquery-iphone-reference/">jQuery reference app</a>. It doesn&#8217;t take long to install and, best of all, it doesn&#8217;t involve the app store at all&#8212;the whole thing is built with HTML, CSS and JavaScript using HTML5&#8217;s <a href="http://www.whatwg.org/specs/web-apps/current-work/#offline">offline storage</a>. Now, no matter where you are, you&#8217;ll always have access to jQuery documentation &#8230;as long as the battery in your phone lasts, anyway.</p>
]]></description>
			<pubDate>Fri, 15 Jan 2010 10:58:14 GMT</pubDate>
			<guid>http://www.domscripting.com/blog/display/124</guid>
			<comments>http://www.domscripting.com/blog/display/124#comments</comments>
		</item>
		<item>
			<title>Fully Frontalled</title>
			<link>http://www.domscripting.com/blog/display/123</link>
			<description><![CDATA[<p>Last Friday, the <a href="http://2009.full-frontal.org/">Full Frontal conference</a> took place here in Brighton. It was like having the circus come to town &#8230;but with fewer acrobatics and more closures.</p>

<p>In short, it was superb. I&#8217;ve been to quite a few conferences in my time so I can get pretty jaded but this was a textbook lesson in how to put on a great event.</p>

<p>The content was top-notch. The fact that the whole day was focused on a single technology gave it a very cohesive feel. That said, there was still a wide variety of topics covered: mobile, accessibility, performance, and even server-side JavaScript. The intensity and complexity increased as the day went on, finishing with Simon <a href="http://simonwillison.net/2009/Nov/23/node/">blowing everyone&#8217;s minds</a>.</p>

<p>All the speakers were great but special mention must go to <span class="vcard"><a href="http://www.jakearchibald.com/" class="fn url" rel="acquaintance met colleague">Jake Archibald</a></span> from the BBC. His talk on JavaScript performance was thoroughly entertaining <em>and</em> informative &#8212;a very tricky combination to do successfully. He made the presentation look effortless but there must have been months of preparation involved. That kind of spontaneity takes years of practice.</p>

<p>If you weren&#8217;t lucky enough to make it to Full Frontal, you can check out the speakers&#8217; slides <a href="http://2009.full-frontal.org/">on the website</a> but really, you should have been there.</p>

<p>Congratulations and kudos to <span class="vcard"><a href="http://remysharp.com/" class="fn url" rel="friend met colleague">Remy</a></span> for putting together such a world-class event. I sincerely hope there&#8217;ll be a Full Frontal 2010, but it&#8217;ll be hard to match the standard set by this year&#8217;s conference.</p>
]]></description>
			<pubDate>Wed, 25 Nov 2009 18:22:15 GMT</pubDate>
			<guid>http://www.domscripting.com/blog/display/123</guid>
			<comments>http://www.domscripting.com/blog/display/123#comments</comments>
		</item>
		<item>
			<title>November spawned a monster</title>
			<link>http://www.domscripting.com/blog/display/122</link>
			<description><![CDATA[<p>November is shaping up to be a very busy month for JavaScript.</p>

<p><span class="vevent"><a class="url summary" href="http://fronteers.nl/congres/2009/information">Fronteers 2009</a> is a two-day event in <span class="location">Amsterdam</span> on <abbr class="dtstart" title="2009-11-05">November 5th</abbr> and <abbr class="dtend" title="2009-11-06">6th</abbr>.</span> <span class="vcard"><a href="http://ejohn.org/" class="fn url" rel="acquaintance met colleague">John Resig</a></span> and <span class="vcard"><a href="http://crockford.com/" class="fn url" rel="acquaintance met colleague">Douglas Crockford</a></span>—that alone makes it worth the price of admission.</p>

<p><span class="vevent">Straight after that, <a href="http://jsconf.eu/2009/" class="summary url">JSConf.eu</a> takes place in <span class="location">Berlin</span> on <abbr title="2009-11-07" class="dtstart">November 7th</abbr> and <abbr title="2009-11-08" class="dtstart">8th</abbr>.</span> It’s a tight squeeze but it would possible to go to both events with a train ride in-between. I wonder if that’s what John is going to do; he’s speaking at both conferences.</p>

<p><span class="vevent">But the highlight of the month still looks like being <a href="http://2009.full-frontal.org/" class="url summary">Full Frontal</a> on <abbr class="dtstart" title="2009-11-20">November 20th</abbr>. That’ll be held right here in <span class="location">Brighton</span> which probably explains why I’m kind of biased.</span> But seriously, check out the line-up:</p>

<ul>
<li class="vcard"><a href="http://www.quirksmode.org/" class="fn url" rel="friend met colleague">Peter-Paul Koch</a>,</li>
<li class="vcard"><a href="http://www.wait-till-i.com/" class="fn url" rel="friend met colleague">Christian Heilmann</a>,</li>
<li class="vcard"><a href="http://simonwillison.net/" class="fn url" rel="friend met colleague">Simon Willison</a></li>
</ul>

<p>…and more.</p>

<p>You can still <a href="http://www.stubmatic.com/leftlogic/event/741">grab tickets</a> for the early-price of just one hundred squid.</p>
]]></description>
			<pubDate>Fri, 21 Aug 2009 17:16:26 GMT</pubDate>
			<guid>http://www.domscripting.com/blog/display/122</guid>
			<comments>http://www.domscripting.com/blog/display/122#comments</comments>
		</item>
		<item>
			<title>Full Frontal</title>
			<link>http://www.domscripting.com/blog/display/121</link>
			<description><![CDATA[<p>I remember when I spoke at the first @media conference in London in 2005, mine was the only talk related to JavaScript. Just a few short years later, there was an entire @media spin-off conference devoted to JavaScript: the slightly-inaccurately named @media Ajax. JavaScript has come a long way in the past few years.</p>

<p class="vevent">This year’s be-there-or-be-square JavaScript event is the newly-announced <a href="http://2009.full-frontal.org/" class="summary url">Full Frontal conference</a> to be held at the fantastic <a href="http://www.picturehouses.co.uk/cinema_home_date.aspx?venueId=doyb" class="location">Duke Of York’s Picturehouse in Brighton</a> on <abbr class="dtstart" title="2009-11-20">November 20th</abbr>:</p>

<blockquote>
<dl><dt>full-fron•tal (JavaScript):</dt>
<dd>with nothing concealed or held back.</dd></dl>
</blockquote>

<p>It’s being organised by <span class="vcard"><a href="http://leftlogic.com/" class="fn url" rel="friend met colleague">Remy Sharp</a></span>. Doesn’t this guy ever sleep? Not content with creating <a href="http://jsbin.com/">JS Bin</a> and <a href="http://api.jquery.com/">the JQuery API browser</a>, and writing a book on <a href="http://jqueryfordesigners.com/">jQuery for Designers</a>, now he’s going to organise a conference too.</p>

<p>It looks like being an absolute bargain. A mere £100 will get you a ticket to a day of <em>serious</em> JavaScript talks from some of the smartest people in the business: <span class="vcard"><a href="http://www.wait-till-i.com/" class="fn url" rel="friend met colleague">Christian Heilmann</a></span>, <span class="vcard"><a href="http://www.quirksmode.org/" class="fn url" rel="friend met colleague">Peter-Paul Koch</a></span>, <span class="vcard"><a href="http://www.kryogenix.org/" class="fn url" rel="friend met colleague">Stuart Langridge</a></span>, <span class="vcard"><a href="http://simonwillison.net/" class="fn url" rel="friend met colleague">Simon Willison</a></span>, and more.</p>

<p>Best of all, I don’t have to travel anywhere for this conference as it’s being held in my adopted hometown of Brighton. But if you do have to travel, I can think of now better place to travel to. Come along and I’ll make sure the geeks of Brighton welcome you.</p>

<p><a href="http://www.stubmatic.com/leftlogic/event/741">Tickets are on sale now</a>.</p>
]]></description>
			<pubDate>Mon, 20 Apr 2009 16:09:11 GMT</pubDate>
			<guid>http://www.domscripting.com/blog/display/121</guid>
			<comments>http://www.domscripting.com/blog/display/121#comments</comments>
		</item>
		<item>
			<title>Unobtrusify</title>
			<link>http://www.domscripting.com/blog/display/120</link>
			<description><![CDATA[<p>A little while back, <span class="vcard"><a href="http://www.hawksworx.com/" class="fn url" rel="friend met colleague">Phil Hawksworth</a></span>, a very smart web developer at Osmosoft, created <a href="http://unobtrusify.com/">Unobtrusify.com</a>. It&#8217;s a self-describing and rather lovely-looking ode to semantic markup, appropriate CSS and unobtrusive JavaScript.</p>

<p>You can <a href="http://www.hawksworx.com/journal/2009/01/05/unobtrusify-your-javascript/">read all about how it was made</a> or you can simply <a href="http://unobtrusify.com/">go and play around with it</a> &#8230;go ahead; click on stuff.</p>

<p>Phil&#8217;s co-worker <span class="vcard"><a href="http://blog.whatfettle.com/" class="fn url" rel="friend met colleague">Paul Downey</a></span> is responsible for such printed masterpieces as <a href="http://thewebisagreement.com/"><cite>The Web Is Agreement</cite></a> and <a href="http://www.flickr.com/photos/psd/2918889380/"><cite>The URI Is The Thing</cite></a>. He has now created <a href="http://www.flickr.com/photos/psd/3290532276/">a printable version of Unobtrusify</a>. Head on over to archive.org, <a href="http://www.archive.org/details/Unobtrusify">download and print</a> to your heart&#8217;s content.</p>

<p>Now I just need to find some sticky material so I can slap my copy up next to my desk.</p>
]]></description>
			<pubDate>Wed, 18 Feb 2009 17:23:47 GMT</pubDate>
			<guid>http://www.domscripting.com/blog/display/120</guid>
			<comments>http://www.domscripting.com/blog/display/120#comments</comments>
		</item>
		<item>
			<title>Happy birthday, jQuery!</title>
			<link>http://www.domscripting.com/blog/display/119</link>
			<description><![CDATA[<p>jQuery was first released on January 14th, 2006. Now, precisely three revolutions of planet Earth later, <a href="http://docs.jquery.com/Release:jQuery_1.3">jQuery 1.3</a> is out.</p>

<p>This release features some significant <a href="http://blog.jquery.com/2009/01/14/jquery-13-and-the-jquery-foundation/">changes and improvements</a>. There’s all the usual speed improvements, of course, but what I like in particular is the way that jQuery is ditching browser sniffing in favour of feature detection. That’s the way to do it.</p>

<p>The way the community is developing is as interesting as the code. <a href="http://sizzlejs.com/">Sizzle</a>, the CSS selector engine inside jQuery, has been spun off into its own standalone project so that it can be used by other libraries and frameworks. Meanwhile, the jQuery project itself is coming under the banner of the <a href="http://conservancy.softwarefreedom.org/">Software Freedom Conservancy</a> to formalise its standing as free and open software.</p>

<p>Congratulations to <span class="vcard"><a href="http://ejohn.org/" rel="friend met colleague" class="url"><abbr title="John Resig" class="fn">John</abbr></a></span> and the rest of the team. Congratulations also to fellow Brightonian <span class="vcard"><a href="http://remysharp.com/" class="url fn" rel="friend met colleague">Remy Sharp</a></span> for putting together the very handy <a href="http://api.jquery.com/">jQuery API browser</a>. The boy done good.</p>
]]></description>
			<pubDate>Wed, 14 Jan 2009 20:55:25 GMT</pubDate>
			<guid>http://www.domscripting.com/blog/display/119</guid>
			<comments>http://www.domscripting.com/blog/display/119#comments</comments>
		</item>
   </channel>
</rss>