<?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>Doctyper &#187; Javascript</title>
	<atom:link href="http://doctyper.com/archives/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://doctyper.com</link>
	<description>Doctyper is the website of Richard Herrera, a front-end developer with a strong commitment to the web standards movement.</description>
	<lastBuildDate>Sat, 31 Jul 2010 00:17:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flow 1.1</title>
		<link>http://doctyper.com/archives/200906/flow-11/</link>
		<comments>http://doctyper.com/archives/200906/flow-11/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 00:44:24 +0000</pubDate>
		<dc:creator>doctyper</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Flow]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://doctyper.com/?p=47</guid>
		<description><![CDATA[And just like that, a new update. Several small fixes worthy of a point upgrade:

Switched QuerySelector engine to Sizzle 1.0
querySelector/querySelectorAll can now be run on any element (via Selectors API)
IE 8 does not like setAttribute on type elements. Reverting to DOM 1 method.
Fixed minor assertion bug in Require.js

]]></description>
			<content:encoded><![CDATA[<p>And just like that, <a href="http://flowjs.com">a new update</a>. Several small fixes worthy of a point upgrade:</p>
<ul>
<li>Switched QuerySelector engine to <a href="http://sizzlejs.com/">Sizzle 1.0</a></li>
<li id="_mc_tmp">querySelector/querySelectorAll can now be run on any element (via Selectors API)</li>
<li id="_mc_tmp">IE 8 does not like setAttribute on type elements. Reverting to DOM 1 method.</li>
<li id="_mc_tmp">Fixed minor assertion bug in Require.js</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://doctyper.com/archives/200906/flow-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flow 1.0.8</title>
		<link>http://doctyper.com/archives/200906/flow-108/</link>
		<comments>http://doctyper.com/archives/200906/flow-108/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 14:44:23 +0000</pubDate>
		<dc:creator>doctyper</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Flow]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://doctyper.com/?p=45</guid>
		<description><![CDATA[A tiny update that fixes IE 8 browser identification. It previously incorrectly identified IE 8 as IE 5.
]]></description>
			<content:encoded><![CDATA[<p>A <a href="http://flowjs.com">tiny update</a> that fixes IE 8 browser identification. It previously incorrectly identified IE 8 as IE 5.</p>
]]></content:encoded>
			<wfw:commentRss>http://doctyper.com/archives/200906/flow-108/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixed positioning in Mobile Safari</title>
		<link>http://doctyper.com/archives/200808/fixed-positioning-on-mobile-safari/</link>
		<comments>http://doctyper.com/archives/200808/fixed-positioning-on-mobile-safari/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 00:34:07 +0000</pubDate>
		<dc:creator>doctyper</dc:creator>
				<category><![CDATA[(X)HTML]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://doctyper.com/?p=44</guid>
		<description><![CDATA[Update: An anonymous genius in the comments suggested using translateY instead of top for the animation. After some edits I&#8217;ve updated my demo, and it flies! The scrolling animation is smooth as silk. Apparently Webkit transforms are the only hardware-accelerated animations at this point. Thanks, random dude on the internet!
Update 2: This code is released [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update:</strong> An anonymous genius in the comments suggested using translateY instead of top for the animation. After some edits I&#8217;ve updated my demo, and it flies! The scrolling animation is smooth as silk. Apparently Webkit transforms are the only hardware-accelerated animations at this point. Thanks, random dude on the internet!</p>
<p><strong>Update 2</strong>: This code is released to the public domain. You can use, modify, remix as you see fit.</p>
<p>Behold, fixed positioning on iPhone! <a href="http://doctyper.com/stuff/iphone/fixed/">http://doctyper.com/stuff/iphone/fixed/</a></p>
<p><a href="http://doctyper.com/stuff/iphone/fixed/fixed-positioning.mov">Here&#8217;s a video</a> for those without iPhones. This is running in the iPhone Simulator bundled with the SDK. Note that the animation is much choppier on an actual iPhone.</p>
<p>With the release of iPhone OS 2.0 came some great improvements over previous Mobile Safari versions. CSS animations are in (though buggy), as well as native touch events like touchstart, touchend, gesturechange, etc.</p>
<p>I played around with these new goodies while hunting for improvements to build into <a href="http://pickleview.com">Pickleview</a>. The most fascinating change to me was that you can now prevent the default behavior of elements with a simple preventDefault() call. It allows a user to drag an element around the screen without having to worry about the viewport wobbling about.</p>
<p>I grew curious as to what I could specifically call this on, and started testing out several elements. Turns out you can preventDefault on everything in the DOM, including the body element. This seemed incredibly useless for no other reason than the terrible usability it would bring if you couldn&#8217;t scroll the viewport. Then the proverbial light bulb went off: <em>fixed positioning</em>!</p>
<p>First, let&#8217;s recap why fixed positioning does not work off-the-bat. Mobile Safari uses a viewport to show you websites. Imagine a book in front of you. Take a piece of paper, cut a 320&#215;416 square in it, and lay it over the book. To read the book, move the paper around and position the hole over the words you want to see. This is exactly what Mobile Safari&#8217;s viewport is doing. When you flick and scroll, you&#8217;re moving the viewport around while the website behind it stays static.</p>
<p>This renders fixed positioning null and void on iPhone. An element that has its position fixed is affixed to the <em>body</em>, not the viewport. So it <em>is</em> actually working as intended, though most people would prefer it attached to the viewport.</p>
<p>There are workarounds in the wild, but these are inelegant. You can reposition an element onscroll, but a scroll event in Mobile Safari is only fired after scrolling has stopped. This results in an evident &#8220;glitch&#8221; since you have to a) flick to your desired position, throwing the element off-screen, and b) wait for the element to reappear in the viewport after scrolling has stopped.</p>
<p>By disabling the default scroll behavior on the body element, you essentially glue the viewport down to its initial starting point, where it&#8217;s unable to go anywhere. This limits the viewport to exactly 320&#215;416 pixels of space to show you. In this state, you have a perfectly useless experience.</p>
<p>This is where it gets interesting. In order to re-enable scrolling, I needed to only make the content area scrollable (think iframe, with header and footer above and below it). The touch and gesture events gives access to X/Y values, as well as timers and offset values. So by logging these and incrementing the top offset of the content area, we can create a scrollable block that does not affect the header or footer elements. A little spit and polish later: voila!</p>
<p>It&#8217;s pretty evident from my proof-of-concept that CSS animations need a lot of work. They&#8217;re promised to be &#8220;hardware-accelerated&#8221;, but there&#8217;s little proof of this. Most animations glitch, some to the point of non-use. The scrolling isn&#8217;t particularly smooth and even something as simple as animating a &#8216;top&#8217; CSS property takes its toll. Still it&#8217;s usable, though I hope later Mobile Safari builds will address these issues.</p>
<p>If you&#8217;re interested, I&#8217;ve bundled together the source files for my proof-of-concept. <a href="http://doctyper.com/stuff/iphone/fixed/fixed-positioning.zip">Grab &#8216;em here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://doctyper.com/archives/200808/fixed-positioning-on-mobile-safari/feed/</wfw:commentRss>
		<slash:comments>63</slash:comments>
<enclosure url="http://doctyper.com/stuff/iphone/fixed/fixed-positioning.mov" length="3815585" type="video/quicktime" />
		</item>
		<item>
		<title>Breaking out of a forEach loop</title>
		<link>http://doctyper.com/archives/200807/breaking-out-of-a-foreach-loop/</link>
		<comments>http://doctyper.com/archives/200807/breaking-out-of-a-foreach-loop/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 00:40:02 +0000</pubDate>
		<dc:creator>doctyper</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Flow]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://doctyper.com/?p=43</guid>
		<description><![CDATA[An email going around the client-side mailing list at Schematic casually mentioned forEach loops. The sender liked them, but tended to avoid them because there was no way to break out of one.
Naturally, this sent me on the hunt to see if it was at all possible. A furious Google search led me to a [...]]]></description>
			<content:encoded><![CDATA[<p>An email going around the client-side mailing list at Schematic casually mentioned forEach loops. The sender liked them, but tended to avoid them because there was no way to break out of one.</p>
<p>Naturally, this sent me on the hunt to see if it was at all possible. A furious Google search led me to a <a href="http://dean.edwards.name/weblog/2006/07/enum/#comment104722">comment by Dean Edwards</a> (who else?). He suggested throwing yourself out of the loop and wrapping the throw in a try catch statement to silence the throw. Like so:</p>
<p><code>var array = [1, 2, 0, 3, 4, 5];<br />
try {<br />
&nbsp;&nbsp;array.forEach(function(item) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;if (item === 0) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw new Error(); // Simulated break<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;console.log(item);<br />
&nbsp;&nbsp;});<br />
} catch (e) {}</code></p>
<p><a href="http://doctyper.com/stuff/flow/forEach/test-1.html">That does the trick.</a> Fellow developer/comrade <a title="Don't mind the light!" href="http://rule52.com/">Lenny Burdette</a> pointed out that this was exactly the method <a href="http://github.com/sstephenson/prototype/tree/master/src/enumerable.js#L1">Prototype uses</a> to break their own custom loops.</p>
<p>But of course, there&#8217;s caveats. With Prototype, you merely have to call <em>$break</em> to have it automate this for you. With Flow, you&#8217;re exposed to the elements and need to handle it yourself. It&#8217;s a neat trick, but quite honestly it&#8217;s not very user friendly, and looks a bit unwieldy as a workaround.</p>
<p>I browsed the forEach documentation and went through possible solutions. One was to extend forEach and include a custom break function in it. But I decided against this for a few reasons. One, it would violate the <a href="http://dean.edwards.name/weblog/2007/03/rules/">rules</a> (#3, to be exact). Over-extending a native function would bring more hurt than it would good. Second, Safari 2 has a problem with extending forEach, so it wasn&#8217;t a viable solution either.</p>
<p>But I had a hunch. What if I simulated a break by splicing off the remaining objects in the array, thereby terminating the loop entirely? I gave it a try:</p>
<p><code>var array = [1, 2, 0, 3, 4, 5];<br />
array.forEach(function(item, i) {<br />
&nbsp;&nbsp;if (item === 0) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;array.splice(i, array.length - i); // Simulated break<br />
&nbsp;&nbsp;} else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;console.log(item);<br />
&nbsp;&nbsp;}<br />
});</code></p>
<p><a href="http://doctyper.com/stuff/flow/forEach/test-2.html">Success!</a> The loop terminates, because there are no more objects to continue to. There&#8217;s just one problem: there are no more objects to continue to. It mutates the array, so it&#8217;s not reliable if you need to reuse the array. You&#8217;re limited to using it only once, or having to rebuild the array.</p>
<p>Ah, but what if you splice the array, and immediately concatenate it? Would it have the same effect and stop the array in its tracks?</p>
<p><code>var array = [1, 2, 0, 3, 4, 5];<br />
array.forEach(function(item, i) {<br />
&nbsp;&nbsp;if (item === 0) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;array = array.concat(array.splice(i, array.length - i)); // F-f-f-forEach breaker!<br />
&nbsp;&nbsp;} else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;console.log(item);<br />
&nbsp;&nbsp;}<br />
});</code></p>
<p><a href="http://doctyper.com/stuff/flow/forEach/test-3.html">Double success!</a> In this example, the array is spliced from the current index point, and all remaining objects are dropped off, ending the loop. The magic happens when we rejoin the array using concat, and reassign the newly constructed object to the array variable. The array is mutated back to its original form, and you&#8217;ve broken the forEach loop.</p>
<p>Still, it&#8217;s not as satisfyingly simple as a break, is it? Well, we can&#8217;t call a break, but we can get close. The next Flow revision will contain the <em>exit</em> Array extra, which will provide you with a keyword (or, as close enough a keyword as I could get) to break a forEach loop:</p>
<p><code>var array = [1, 2, 0, 3, 4, 5];<br />
array.forEach(function(item, i) {<br />
&nbsp;&nbsp;if (item === 0) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;array = array.exit(i);<br />
&nbsp;&nbsp;} else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;console.log(item);<br />
&nbsp;&nbsp;}<br />
});</code></p>
]]></content:encoded>
			<wfw:commentRss>http://doctyper.com/archives/200807/breaking-out-of-a-foreach-loop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flow 1.0.2</title>
		<link>http://doctyper.com/archives/200807/flow-102/</link>
		<comments>http://doctyper.com/archives/200807/flow-102/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 19:19:52 +0000</pubDate>
		<dc:creator>doctyper</dc:creator>
				<category><![CDATA[(X)HTML]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Flow]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://doctyper.com/?p=41</guid>
		<description><![CDATA[I just pushed release 1.0.2 out the door.
Bug fix:
Flow will no longer choke with SWFObject.
Early this morning I received a report about Flow not playing nicely with SWFObject. After debugging, it turned out it was a case of doing too much.
SWFObject correctly cleans up after itself in IE by removing its generated code on unload. [...]]]></description>
			<content:encoded><![CDATA[<p>I just pushed release 1.0.2 out the door.</p>
<h4>Bug fix:</h4>
<p>Flow will no longer choke with SWFObject.</p>
<p>Early this morning I received a report about Flow not playing nicely with SWFObject. After debugging, it turned out it was a case of doing too much.</p>
<p>SWFObject correctly cleans up after itself in IE by removing its generated code on unload. The conflict appears because Flow does the same with its code, going as far as eliminating all extended element properties.</p>
<p>So when SWFObject tried to removeChild, it returned null because Flow extends that property, and by the time SWFObject got to it, it was already wiped out.</p>
<p>Flow now merely restores an extended property back to its original implementation, rather than nullifying the property. This will fix the error.</p>
<h4>Feature:</h4>
<p>dispatchEvent is now implemented in Flow. You can use it to fire events on elements from another element. Confusing? Here&#8217;s an example:</p>
<p><code>var test = document.getById(&quot;test&quot;);<br />
test.addEventListener(&quot;click&quot;, function() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;// console.log(this.id);<br />
}, false);<br />
&nbsp;<br />
document.getById(&quot;dispatcher&quot;).addEventListener(&quot;click&quot;, function() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;test.dispatchEvent(&quot;click&quot;);<br />
}, false);</code></p>
<p>You can pass any event type and it will fire all events coupled with that type.</p>
<p>As usual, you can download the Flow framework at <a href="http://flowjs.com">http://flowjs.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://doctyper.com/archives/200807/flow-102/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing Flow</title>
		<link>http://doctyper.com/archives/200805/introducing-flow/</link>
		<comments>http://doctyper.com/archives/200805/introducing-flow/#comments</comments>
		<pubDate>Fri, 09 May 2008 21:00:52 +0000</pubDate>
		<dc:creator>doctyper</dc:creator>
				<category><![CDATA[(X)HTML]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://doctyper.com/?p=40</guid>
		<description><![CDATA[This is a post I&#8217;ve been wanting to write for months now. For the past several months I&#8217;ve been spending my free time toiling over a personal project of mine.
It started with Dean Edwards and his release of the Base2 library. It scratched an itch that I&#8217;ve had for years: I wanted the ability to [...]]]></description>
			<content:encoded><![CDATA[<p>This is a post I&#8217;ve been wanting to write for months now. For the past several months I&#8217;ve been spending my free time toiling over a personal project of mine.</p>
<p>It started with Dean Edwards and his release of the <a href="http://dean.edwards.name/weblog/2007/03/yet-another/">Base2 library</a>. It scratched an itch that I&#8217;ve had for years: I wanted the ability to use the DOM API (Level 3) in all modern browsers. Base2 has since seen a second revision and is <a href="http://code.google.com/p/base2/">even more powerful</a> than before.<em> (Aside: Dean Edwards&#8217; is a freaking genius.)</em></p>
<p>But I wanted more. I wanted a hybrid API that would allow me to use the standard API, but would also contain helper functions, shorthand notation, chainability, etc. So I got to work.</p>
<p>After eight months of development, trials, tears and tribulations I am pleased to announce the initial release of <a href="http://flowjs.com/">The Flow Framework</a>.</p>
<p>Flow aims to fix and enhance the DOM Level 3 API. Flow extends API functionality to browsers that currently don&#8217;t support it. Additionaly, it adds powerful functionality on top for the best bang for your JavaScript buck.</p>
<p>A sample of the functions it implements cross-browser:</p>
<ul>
<li>getElementsByClassName / getElementsByAttribute</li>
<li>addEventListener / removeEventListener (with DOMContentLoaded support)</li>
<li>preventDefault / stopPropagation</li>
<li>addClass / removeClass / replaceClass</li>
<li>querySelector / querySelectorAll</li>
<li>shorthand notation (getById, getByTag, getByClass, etc)</li>
</ul>
<p>Hereâ€™s a snippet of what can be accomplished with Flow:</p>
<p>Find all: <code class="prettyprint">ul.checked li</code></p>
<h5>With Flow Core</h5>
<p><code>var uls = document.getElementsByClassName(&quot;checked&quot;).filter(function(e) {<br />
&nbsp;&nbsp;return e.nodeName.toLowerCase() == &quot;ul&quot;;<br />
});<br />
var lis = [];<br />
uls.forEach(function(ul) {<br />
&nbsp;&nbsp;ul.getElementsByTagName(&quot;li&quot;).forEach(function(li) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;lis.push(li);<br />
&nbsp;&nbsp;});<br />
});</code></p>
<h5>With Flow Extend</h5>
<p><code class="prettyprint">var lis = document.getByClass("checked").filter(function(e) {<br />
	return e.elementName() == "ul";<br />
}).getByTag("li");</code></p>
<h5>With Flow Query</h5>
<p><code>var lis = document.querySelectorAll(&quot;ul.checked li&quot;);</code></p>
<p>Want to open external links in new windows via JavaScript?<br />
<code>document.getByAttr(&quot;rel&quot;, &quot;external&quot;).setAttribute(&quot;target&quot;, &quot;_blank&quot;);</code></p>
<p>Want to return false on those pesky blank-anchor links?<br />
<code>document.getByAttr(&quot;href&quot;, &quot;#&quot;).addEventListener(&quot;click&quot;, function(e) {<br />
&nbsp;&nbsp;e.preventDefault();<br />
}, false);</code></p>
<p>There are more <a href="http://flowjs.com/examples/">code samples</a>, <a href="http://flowjs.com/docs/">documentation</a>, <a href="http://flowjs.com/test/unit/">unit tests</a> on the official site. Be sure to download a <a href="http://flowjs.com/download/">customized Flow build</a> and try it out!</p>
<p>For those that want to take a gander at the code, you can check out the source on Google Code: <a href="http://code.google.com/p/flowjs/">http://code.google.com/p/flowjs/</a>.</p>
<p>There&#8217;s already a website using Flow in the wild. <a href="http://southparkstudios.com/">South Park Studios</a> was unveiled a couple of months ago, and it&#8217;s been chugging along since. Unfortunately I was under gag order at the time while the final details were being hammered down. Now I can officially state that it&#8217;s using Flow and lovin&#8217; it.</p>
<p>Many, many thanks to <a href="http://schematic.com">Schematic</a> for supporting the release of this library, and to the many Schematicans who freely contributed to the library.</p>
<p>Thanks are also in order to the great JavaScript programmers who&#8217;ve turned us all on our heads: <a href="http://ejohn.org">John Resig</a>, <a href="http://dean.edwards.name/">Dean Edwards</a>, <a href="http://www.robertnyman.com/">Robert Nyman</a>, <a href="http://therealcrisp.xs4all.nl/blog/">Tino Zijdel</a>, <a href="http://www.ilinsky.com/">Sergey Ilinsky</a> and countless others.</p>
]]></content:encoded>
			<wfw:commentRss>http://doctyper.com/archives/200805/introducing-flow/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Pickleview 1.0</title>
		<link>http://doctyper.com/archives/200708/pickleview-10/</link>
		<comments>http://doctyper.com/archives/200708/pickleview-10/#comments</comments>
		<pubDate>Tue, 07 Aug 2007 21:51:08 +0000</pubDate>
		<dc:creator>doctyper</dc:creator>
				<category><![CDATA[(X)HTML]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://doctyper.com/archives/200708/pickleview-10/</guid>
		<description><![CDATA[I&#8217;m proud to announce that we&#8217;ve just crossed this significant milestone. After weeks of crunching bugs and rolling out update after update, Pickleview is officially a 1.0 release.
What started as a simple itch to scratch has turned into a full-fledged iPhone application, used by true honest-to-goodness people. Really!
The feedback has been nothing short of spectacular. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m proud to announce that we&#8217;ve just crossed this significant milestone. After weeks of crunching bugs and rolling out update after update, <a href="http://pickleview.com" title="Pickleview 1.0">Pickleview</a> is officially a 1.0 release.</p>
<p>What started as a simple itch to scratch has turned into a full-fledged iPhone application, used by true honest-to-goodness people. Really!</p>
<p>The feedback has been nothing short of spectacular. We&#8217;ve <a href="http://ajaxian.com/archives/iphone-update-pickleview-dojo-chat-iui-generation-and-more">received</a> <a href="http://www.joehewitt.com/blog/iui_monotony.php">tons</a> of <a href="http://applephoneshow.com/index.php/archives/649">praise</a> and we&#8217;ve listened to your feedback, sometimes pushing out updates within hours of suggestions. A gigantic thank you to everyone who pushed us to keep upping the ante.</p>
<p>An extra amount of thanks to <a href="http://mlb.mlb.com" title="Major League Baseball">Major League Baseball</a> and <a href="http://twitter.com" title="Twitter">Twitter</a>, the entities responsible for providing us data. Without them Pickleview would not exist.</p>
<p>To commemorate this milestone, I&#8217;m happy to say that we&#8217;re releasing the Pickleview code under the <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution-Noncommercial-Share Alike 3.0  License</a>. You are free to learn from it, distribute and modify (as long as you share alike). <a href="http://svn.iphonewebdev.com/pickleview/">View the source here</a>. Thanks to the good folk at iPhoneWebDev for hosting our files. We&#8217;re hoping it becomes the repository for open-source iPhone web applications.</p>
<p>Lastly, stay tuned. We&#8217;ve got things in the works, gears are grinding, and overtime is being spent.</p>
]]></content:encoded>
			<wfw:commentRss>http://doctyper.com/archives/200708/pickleview-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pickleview</title>
		<link>http://doctyper.com/archives/200707/pickleview/</link>
		<comments>http://doctyper.com/archives/200707/pickleview/#comments</comments>
		<pubDate>Fri, 13 Jul 2007 04:47:39 +0000</pubDate>
		<dc:creator>doctyper</dc:creator>
				<category><![CDATA[(X)HTML]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://doctyper.com/archives/200707/pickleview/</guid>
		<description><![CDATA[I want to talk a little bit about a side project that&#8217;s gleefully taken up most of my free time.
Over the weekend I attended iPhoneDevCamp, a gathering of web geeks from around the globe with one purpose: to create applications for iPhone.
I went into the event with little-to-no expectation of anything happening. It being my [...]]]></description>
			<content:encoded><![CDATA[<p>I want to talk a little bit about a <a href="http://pickleview.com">side project</a> that&#8217;s gleefully taken up most of my free time.</p>
<p>Over the weekend I attended <a href="http://barcamp.org/iphonedevcamp">iPhoneDevCamp</a>, a gathering of web geeks from around the globe with one purpose: to create applications for iPhone.</p>
<p>I went into the event with little-to-no expectation of anything happening. It being my first BarCamp I didn&#8217;t know the atmosphere, how we would mingle, etc.</p>
<p>What happened that weekend was something I won&#8217;t forget for some time. It was a great feeling to walk through the Adobe Town Hall and see energy popping from 300 minds at once. You could feel the electricity as people discovered loopholes and solved riddles that had puzzled iPhone developers since its release.</p>
<p>My story was rather interesting. After a canceled flight and barely making the 6:00pm start time (United: Never Again), I was sticking with my usual schtick: talk to no one, avoid eye contact. Twenty minutes in, I suddenly realized the magnitude of the event and was determined to talk to someone&#8211; <em>anyone</em>.</p>
<p>It was then I spotted a couple of individuals at a corner table, mingling away. I took a chance, and introduced myself. Ryan and Seto were their names. A short while later,  Estelle joined the small table, and we started brainstorming.</p>
<p>I&#8217;d been developing a small web app I dubbed LiveScore for a <a href="http://dodgers.cc">Dodgers&#8217; fan forum</a> that I run.  It gave real-time updates of Dodger scores, as well as some vital stats of each game. On a whim I opened up the app and showed it to the group. The gang really took to it, and from that point brainstorming focused around LiveScore.</p>
<p>Minutes later, we had a prototype: A web app/mashup that would combine live game tracking with the ability to chat along with friends on Twitter.</p>
<p>And so, <a href="http://pickleview.com">Pickleview</a> was born.</p>
<p>In the span of 36 hours, we four furiously coded together the required bytes to get the app off the ground, and wrapped it around a native-looking UI. It was thrilling to say the least, if not completely overwhelming. I don&#8217;t believe I&#8217;ve ever coded so much in so short a time.</p>
<p>We had our small moment in the sun, making some <a href="http://content.zdnet.com/2346-9595_22-93897-4.html">top ten lists</a> and being interviewed by the <a href="http://mercextra.com/video/2007/07/09/inside-the-iphone-devcamp/">San Jose Mercury Press</a>. But the real payoff was being able to release a very useful app for others to enjoy.</p>
<p>That, and comments that would make anyone jump for joy. Thanks again, <a href="http://joehewitt.com">Joe</a>.</p>
<p>Since the camp, we&#8217;ve been working hard to improve our little app that could. We&#8217;ve added features such as play-by-play, visual cues on score, balls/strikes tracking, and lots and lots of bug fixes. I have to say I&#8217;m enjoying the ride. All for an app I&#8217;m proud to be a part of.</p>
<p>I should reiterate that neither I nor Ryan nor Seto nor Estelle had ever met each other before Friday. It was a great experience to be able to accomplish so much with virtual strangers. Pickleview, however, is quickly making us closer acquaintances.</p>
]]></content:encoded>
			<wfw:commentRss>http://doctyper.com/archives/200707/pickleview/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Remote 1.1</title>
		<link>http://doctyper.com/archives/200706/remote-11/</link>
		<comments>http://doctyper.com/archives/200706/remote-11/#comments</comments>
		<pubDate>Fri, 08 Jun 2007 22:17:35 +0000</pubDate>
		<dc:creator>doctyper</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://doctyper.com/archives/200706/remote-11/</guid>
		<description><![CDATA[I&#8217;ve just updated my Remote script to version 1.1
New in this version:

Faster, safer implementation of callback functions
Now supports uploading files via Ajax(ish)

Check out the sample code for more.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just updated my <a href="http://doctyper.com/stuff/remote/" title="Remote">Remote</a> script to version 1.1</p>
<p>New in this version:</p>
<ul>
<li>Faster, safer implementation of callback functions</li>
<li>Now supports uploading files via Ajax<span style="color: #dddddd">(ish)</span></li>
</ul>
<p>Check out the <a href="http://doctyper.com/stuff/remote/" title="Remote">sample code</a> for more.</p>
]]></content:encoded>
			<wfw:commentRss>http://doctyper.com/archives/200706/remote-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remote: A cross-browser XHR/JSON function.</title>
		<link>http://doctyper.com/archives/200704/remote-a-cross-browser-xhrjson-function/</link>
		<comments>http://doctyper.com/archives/200704/remote-a-cross-browser-xhrjson-function/#comments</comments>
		<pubDate>Wed, 11 Apr 2007 00:33:54 +0000</pubDate>
		<dc:creator>doctyper</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://doctyper.com/archives/200704/remote-a-cross-browser-xhrjson-function/</guid>
		<description><![CDATA[I grew tired of re-scripting my remote calls, so I&#8217;ve built a global function that can handle whatever I throw at it.
Remote is a global, lightweight XHR/JSON function, designed to handle cross-browser remote scripting.

For XMLHttpRequests, it uses the native XHR object for browsers that support it. For IE versions 6 and below, it defaults to [...]]]></description>
			<content:encoded><![CDATA[<p>I grew tired of re-scripting my remote calls, so I&#8217;ve built a global function that can handle whatever I throw at it.</p>
<p><a href="http://doctyper.com/stuff/remote/">Remote</a> is a global, lightweight XHR/JSON function, designed to handle cross-browser remote scripting.</p>
<p><span id="more-15"></span></p>
<p>For XMLHttpRequests, it uses the native XHR object for browsers that support it. For IE versions 6 and below, it defaults to using XML Data Islands (when permitted). If all else fails, it reverts to using an ActiveXObject.</p>
<p><a href="http://doctyper.com/stuff/remote/">Remote</a> supports JSON (Javascript Object Notation), as well as the <a href="http://json-rpc.org/wiki/specification">JSON-RPC</a> spec.</p>
<p>Remote has been successfully tested with the following browsers:</p>
<ul>
<li>Internet Explorer 5.5</li>
<li>Internet Explorer 6</li>
<li>Internet Explorer 7</li>
<li>Firefox 2</li>
<li>Camino 1.1</li>
<li>Safari 1.3/2.0</li>
<li>Opera 9</li>
</ul>
<p>I&#8217;m pleased to offer <a href="http://doctyper.com/stuff/remote/">Remote</a> for download to anyone in need of a cross-browser XHR/JSON script. I am releasing the script according to the <a href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-Share Alike 3.0 License</a>. You are free to use, distribute, and modify the script (as long as you share alike).</p>
<p>Feel free to take a look at the Remote API. And feel free to submit any bugs or questions you might have.</p>
]]></content:encoded>
			<wfw:commentRss>http://doctyper.com/archives/200704/remote-a-cross-browser-xhrjson-function/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
