<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Bobobobo's Weblog &#187; javascript</title>
	<atom:link href="http://bobobobo.wordpress.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://bobobobo.wordpress.com</link>
	<description>technology and the internets</description>
	<lastBuildDate>Mon, 30 Nov 2009 16:56:23 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='bobobobo.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/0e8d17c68f90a18a1e89a776717e00e2?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Bobobobo's Weblog &#187; javascript</title>
		<link>http://bobobobo.wordpress.com</link>
	</image>
			<item>
		<title>&#8220;element is null&#8221; weird prototype start error</title>
		<link>http://bobobobo.wordpress.com/2008/09/29/element-is-null-weird-prototype-start-error/</link>
		<comments>http://bobobobo.wordpress.com/2008/09/29/element-is-null-weird-prototype-start-error/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 15:26:55 +0000</pubDate>
		<dc:creator>bobobobo</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://bobobobo.wordpress.com/?p=351</guid>
		<description><![CDATA[i was trying to bring prototype into a non-prototype page and this error happened:

element is null

on page load.
BUT I DIDN&#8217;T DO ANYTHING WITH PROTOTYPE YET!!
How come its not loading?
Well it turns out I&#8217;m so in love with prototype that I had already defined:


function $(a)
{
  return document.getElementById( a ) ;
}


as you recognize as a commonly [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=351&subd=bobobobo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>i was trying to bring prototype into a non-prototype page and this error happened:</p>
<blockquote><p>
element is null
</p></blockquote>
<p>on page load.</p>
<p>BUT I DIDN&#8217;T DO ANYTHING WITH PROTOTYPE YET!!</p>
<p>How come its not loading?</p>
<p>Well it turns out I&#8217;m so in love with prototype that I had already defined:</p>
<blockquote>
<pre>
function $(a)
{
  return document.getElementById( a ) ;
}
</pre>
</blockquote>
<p>as you recognize as a commonly used prototype convenience function.  once that function decl is deleted, prototype now integrates beautifully into my already javascript-caked page.</p>
Posted in javascript, programming  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bobobobo.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bobobobo.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bobobobo.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bobobobo.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bobobobo.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bobobobo.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bobobobo.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bobobobo.wordpress.com/351/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bobobobo.wordpress.com/351/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bobobobo.wordpress.com/351/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=351&subd=bobobobo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bobobobo.wordpress.com/2008/09/29/element-is-null-weird-prototype-start-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4ec51727310397c9e592dd84ae74dc2?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">bobobobo</media:title>
		</media:content>
	</item>
		<item>
		<title>can you say fantastic?</title>
		<link>http://bobobobo.wordpress.com/2008/01/01/can-you-say-fantastic/</link>
		<comments>http://bobobobo.wordpress.com/2008/01/01/can-you-say-fantastic/#comments</comments>
		<pubDate>Tue, 01 Jan 2008 15:53:52 +0000</pubDate>
		<dc:creator>bobobobo</dc:creator>
				<category><![CDATA[internets]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://bobobobo.wordpress.com/2008/01/01/can-you-say-fantastic/</guid>
		<description><![CDATA[Ahaha.
Finally.
ie 8 passes Acid 2.
Wow!  I remember seeing Hakon Wium talk about how badly ie fails in this youtube video (he starts speaking at about the 28 minute mark)
also today: iui lib &#8211; apple-iphone like interface &#8211; very cool
asserts in C++
And some nerdcore rap that entertains (however briefly), linked to in above article: mcplusplus
 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=16&subd=bobobobo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Ahaha.</p>
<p>Finally.</p>
<p><a href="http://blogs.msdn.com/ie/archive/2007/12/19/internet-explorer-8-and-acid2-a-milestone.aspx">ie 8 passes Acid 2</a>.</p>
<p>Wow!  I remember seeing Hakon Wium talk about how badly ie fails in <a href="http://video.yahoo.com/video/play?vid=287660">this youtube video</a> (he starts speaking at about the 28 minute mark)</p>
<p>also today: <a href="http://code.google.com/p/iui/">iui lib &#8211; apple-iphone like interface</a> &#8211; very cool</p>
<p><a href="http://powerof2games.com/node/10">asserts in C++</a></p>
<p>And some nerdcore rap that entertains (however briefly), linked to in above article: <a href="http://www.mcplusplus.com/">mcplusplus</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bobobobo.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bobobobo.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bobobobo.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bobobobo.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bobobobo.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bobobobo.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bobobobo.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bobobobo.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bobobobo.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bobobobo.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bobobobo.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bobobobo.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=16&subd=bobobobo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bobobobo.wordpress.com/2008/01/01/can-you-say-fantastic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4ec51727310397c9e592dd84ae74dc2?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">bobobobo</media:title>
		</media:content>
	</item>
		<item>
		<title>plan ahead and pass the event object</title>
		<link>http://bobobobo.wordpress.com/2007/12/20/plan-ahead-and-pass-the-event-object/</link>
		<comments>http://bobobobo.wordpress.com/2007/12/20/plan-ahead-and-pass-the-event-object/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 02:49:00 +0000</pubDate>
		<dc:creator>bobobobo</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://bobobobo.wordpress.com/2007/12/20/plan-ahead-and-pass-the-event-object/</guid>
		<description><![CDATA[If you&#8217;re going to hardcode event handlers right into your HTML, (perhaps its being delivered from a php page) there&#8217;s 2 ways you can do this:
&#60;span onclick=&#8221; runFuncAndTargetIsTHIS( this ); &#8220;&#62;  &#60;!&#8211; way A &#8211;&#62;
or:
&#60;span onclick=&#8221; runFuncButNeedToExtractTarget( event ); &#8220;&#62;  &#60;!&#8211; way B &#8211;&#62;
Function for way A looks like:

runFuncAndTargetIsTHIS( elem )
{
   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=10&subd=bobobobo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you&#8217;re going to hardcode event handlers right into your HTML, (perhaps its being delivered from a php page) there&#8217;s 2 ways you can do this:</p>
<p><span style="font-size:10pt;font-family:'Courier New';color:black;">&lt;span onclick=<span style="color:#2a00ff;">&#8221; runFuncAndTargetIsTHIS( this ); &#8220;</span>&gt;  &lt;!&#8211; way A &#8211;&gt;</span></p>
<p>or:</p>
<p><span style="font-size:10pt;font-family:'Courier New';color:black;">&lt;span onclick=<span style="color:#2a00ff;">&#8221; runFuncButNeedToExtractTarget( event ); &#8220;</span>&gt;  &lt;!&#8211; way B &#8211;&gt;</span></p>
<p>Function for way A looks like:</p>
<pre>
runFuncAndTargetIsTHIS( elem )
{
    alert( elem + ' is the HTML element that was clicked' );
}</pre>
<p>While way B:</p>
<pre>
runFuncButNeedToExtractTarget( e )
{
    e = e || window.event;
    var target = e.target || e.srcElement;
    alert( target + ' is the HTML element that was clicked' );
}</pre>
<p>Some people say you shouldn&#8217;t do things using Way A.  But I find Way A sometimes convenient.  The only reason I can think of right now that Way A is bad is its easier to cancel propagation (cancel bubbling) of event registered using way B.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bobobobo.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bobobobo.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bobobobo.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bobobobo.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bobobobo.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bobobobo.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bobobobo.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bobobobo.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bobobobo.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bobobobo.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bobobobo.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bobobobo.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=10&subd=bobobobo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bobobobo.wordpress.com/2007/12/20/plan-ahead-and-pass-the-event-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4ec51727310397c9e592dd84ae74dc2?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">bobobobo</media:title>
		</media:content>
	</item>
		<item>
		<title>javascript:: cool blog</title>
		<link>http://bobobobo.wordpress.com/2007/12/18/cool-blog/</link>
		<comments>http://bobobobo.wordpress.com/2007/12/18/cool-blog/#comments</comments>
		<pubDate>Tue, 18 Dec 2007 02:39:14 +0000</pubDate>
		<dc:creator>bobobobo</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://bobobobo.wordpress.com/2007/12/18/cool-blog/</guid>
		<description><![CDATA[this entry explains how to use window.setTimeout( code, delay );
the first argument can be a function object
http://www.biasecurities.com/blogs/jim/archive/2005/08/04/2047.aspx
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=9&subd=bobobobo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>this entry explains how to use window.setTimeout( code, delay );</p>
<p>the first argument can be a function object</p>
<p><a href="http://www.biasecurities.com/blogs/jim/archive/2005/08/04/2047.aspx">http://www.biasecurities.com/blogs/jim/archive/2005/08/04/2047.aspx</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bobobobo.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bobobobo.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bobobobo.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bobobobo.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bobobobo.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bobobobo.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bobobobo.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bobobobo.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bobobobo.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bobobobo.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bobobobo.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bobobobo.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=9&subd=bobobobo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bobobobo.wordpress.com/2007/12/18/cool-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4ec51727310397c9e592dd84ae74dc2?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">bobobobo</media:title>
		</media:content>
	</item>
		<item>
		<title>no scripting</title>
		<link>http://bobobobo.wordpress.com/2007/12/16/no-scripting/</link>
		<comments>http://bobobobo.wordpress.com/2007/12/16/no-scripting/#comments</comments>
		<pubDate>Sun, 16 Dec 2007 22:18:05 +0000</pubDate>
		<dc:creator>bobobobo</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://bobobobo.wordpress.com/2007/12/16/no-scripting/</guid>
		<description><![CDATA[i didn&#8217;t write a single line of javascript yesterday.  i actually felt guilty.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=5&subd=bobobobo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>i didn&#8217;t write a single line of javascript yesterday.  i actually felt guilty.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bobobobo.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bobobobo.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bobobobo.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bobobobo.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bobobobo.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bobobobo.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bobobobo.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bobobobo.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bobobobo.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bobobobo.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bobobobo.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bobobobo.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bobobobo.wordpress.com&blog=2331964&post=5&subd=bobobobo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bobobobo.wordpress.com/2007/12/16/no-scripting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a4ec51727310397c9e592dd84ae74dc2?s=96&#38;d=http%3A%2F%2Fa.wordpress.com%2Fi%2Fmu.gif" medium="image">
			<media:title type="html">bobobobo</media:title>
		</media:content>
	</item>
	</channel>
</rss>