<?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>Produxion &#187; jQuery</title>
	<atom:link href="http://www.produxion.net/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.produxion.net</link>
	<description>The personal weblog of Phil Powell</description>
	<lastBuildDate>Wed, 01 Feb 2012 10:08:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Building a Custom HTML5 Audio Player with jQuery</title>
		<link>http://www.produxion.net/2010/10/26/building-a-custom-html5-audio-player-with-jquery/</link>
		<comments>http://www.produxion.net/2010/10/26/building-a-custom-html5-audio-player-with-jquery/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 11:19:41 +0000</pubDate>
		<dc:creator>Phil Powell</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.produxion.net/?p=389</guid>
		<description><![CDATA[A brilliant, in-depth post from Neutron Creations about creating a custom HTML5 audio player: We recently built an HTML5 audio player for Tim Van Damme‘s The Box, a new podcast where he interviews people who make cool stuff. Tim wanted an HTML5 audio player on the site, and we put together some jQuery to hook [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://neutroncreations.com/blog/building-a-custom-html5-audio-player-with-jquery/">A brilliant, in-depth post from Neutron Creations</a> about creating a custom HTML5 audio player:</p>
<blockquote><p>We recently built an HTML5 audio player for <a href="http://maxvoltar.com/">Tim Van Damme</a>‘s <a href="http://thebox.maxvoltar.com/">The Box</a>, a new podcast where he interviews people who make cool stuff. Tim wanted an HTML5 audio player on the site, and we put together some <a href="http://jquery.com/">jQuery</a> to hook up the player interface he designed. In this article we’ll run through the code to explain how it works, covering a few caveats along the way.</p></blockquote>
<p>They provide code samples and an explanation of their really well thought out design decisions. Really surprising how little code is involved in creating something like this too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.produxion.net/2010/10/26/building-a-custom-html5-audio-player-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Announcement &#8211; Gridlet V0.1</title>
		<link>http://www.produxion.net/2009/01/15/announcement-gridlet-v01/</link>
		<comments>http://www.produxion.net/2009/01/15/announcement-gridlet-v01/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 09:27:47 +0000</pubDate>
		<dc:creator>Phil Powell</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.produxion.net/?p=36</guid>
		<description><![CDATA[I've been using grids in my CSS designs for quite a while now, inspired by frameworks like <a href="http://www.blueprintcss.org/">Blueprint CSS</a>.  Although I don't use Blueprint for production work (using a CSS framework starts to get a bit restrictive, and I prefer to build from scratch, rather than trying to override someone else's default), I do use the methodology in my own CSS to create structured, grid-based layouts, and consistent typography.

One of the clever things that Blueprint introduced was the idea of displaying the grid while you're working - this proves to be an invaluable aid as you try to refine CSS rules.  But I've found that - as good as the theory is - it has a few drawbacks.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using grids in my CSS designs for quite a while now, inspired by frameworks like <a href="http://www.blueprintcss.org/">Blueprint CSS</a>.  Although I don&#8217;t use Blueprint for production work (using a CSS framework starts to get a bit restrictive, and I prefer to build from scratch, rather than trying to override someone else&#8217;s default), I do use the methodology in my own CSS to create structured, grid-based layouts, and consistent typography.</p>
<p>One of the clever things that Blueprint introduced was the idea of displaying the grid while you&#8217;re working &#8211; this proves to be an invaluable aid as you try to refine CSS rules.  But I&#8217;ve found that &#8211; as good as the theory is &#8211; it has a few drawbacks:</p>
<ol>
<li>Because it uses a background-image CSS property, it overrides any beautiful background design you might have implemented.</li>
<li>Because it uses images, if you change your grid size, you have to generate a new custom image &#8211; a bit of a faff.</li>
<li>You have to tweak your CSS every time you want to turn the grid on or off.</li>
</ol>
<p>Since I work with grids more and more often, I decided to have a stab at coming up with a solution which refines the Blueprint idea, adds a dash of <a href="http://www.jquery.com">jQuery</a> to produce something which is a little more flexible and user-friendly.</p>
<p>What I&#8217;ve come up with is a jQuery plugin called Gridlet.  Instead of using pure CSS, the plugin generates a grid on-the-fly, and it&#8217;s an improvement in the following ways:</p>
<ol>
<li>It doesn&#8217;t use images &#8211; instead it dynamically generates a grid on top of your page, so your design remains intact.</li>
<li>Changing your grid size is as simple as changing a setting &#8211; no need to generate images.</li>
<li>You, er, have to tweak your JS to turn it on or off (this is something I&#8217;m going to work on improving &#8211; it&#8217;s early days).</li>
</ol>
<p>It&#8217;s also worth noting that this first version only produces horizontal grids &#8211; that&#8217;s all I need at the moment  No doubt I&#8217;lla dd vertical grid spacing as and when it&#8217;s needed.  Any comments or suggestions are appreciated.</p>
<p><a href="http://www.produxion.net/wp-content/uploads/2009/01/jquerygridlet-01.js">You can download version 0.1 of Gridlet here</a>.  I&#8217;ve only tested in Safari 3 and Firefox 3 so far.</p>
<p>Implementing it is really easy &#8211; you just do something like this:</p>
<pre>$(document).ready(function() {
  $("body").gridlet();
});</pre>
<p>If you want to override the default grid height or colour, just pass in the settings like this:</p>
<pre>$(document).ready(function() {
  $("body").gridlet({
    height: 18,
    background: "#fcc"
  });
});</pre>
<p>And finally, for your curiosity, here&#8217;s the source code:</p>
<pre>(function($) {
  jQuery.fn.gridlet = function(options) {

    var opts = $.extend({}, $.fn.gridlet.defaults, options);
    var line_position = 0;
    $("&lt;div/&gt;").attr("id", "grid_container").appendTo("body").css({
      position: "absolute",
      top: 0,
      left: 0,
      height: "100px",
      width: "100%",
    })

    while(line_position &lt; $("body").height())
    {
      line_position += opts.height;
      $("&lt;div/&gt;").css({
        position: "absolute",
        top: line_position,
        left: 0,
        height: 1,
        width: "100%",
        background: opts.background
      }).appendTo("div#grid_container")
    }

    return this;

  };

  jQuery.fn.gridlet.defaults = {
    height: 24,
    width: 24,
    background: "#ddf"
  };

})(jQuery);</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.produxion.net/2009/01/15/announcement-gridlet-v01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

