<?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>McKinney Station &#187; JavaScript</title>
	<atom:link href="http://www.mckinneystation.com/categories/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mckinneystation.com</link>
	<description>Ruby on Rails web application development for Dallas/Fort Worth and all of North Texas.</description>
	<lastBuildDate>Wed, 02 Sep 2009 14:29:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Rails respond_to Made It Too Easy</title>
		<link>http://www.mckinneystation.com/2009/07/13/rails-respond_to-made-it-too-easy/</link>
		<comments>http://www.mckinneystation.com/2009/07/13/rails-respond_to-made-it-too-easy/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 16:49:35 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
				<category><![CDATA[Entrepreneurial]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Web Applications]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/?p=111</guid>
		<description><![CDATA[I recently had a spike in traffic (1-2 visits/day to 30-40 visits/day) over at CatechizeMe.com.  Someone out on the internet came across it, found it useful, and linked to it.  Yay!
With this new traffic, came some new requests for features.  The first was a request for a Google Gadget.  I didn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had a spike in traffic (1-2 visits/day to 30-40 visits/day) over at <a href="http://www.catechizeme.com">CatechizeMe.com</a>.  Someone out on the internet came across it, found it useful, and linked to it.  Yay!</p>
<p>With this new traffic, came some new requests for features.  The first was a request for a <a href="http://www.google.com/ig/directory">Google Gadget</a>.  I didn&#8217;t know much about what I needed to create a Gadget, but after <a href="http://code.google.com/apis/gadgets/index.html">looking it up</a> I realized I could use the <a href="http://www.catechizeme.com/resources/catechizeme-api">CatechizeMe API</a> that came automatically when I built the app.  With just a few lines of code, the Daily Question service was created and returning JSON data.  You gotta love it when things are this easy.</p>
<p>BEFORE:</p>
<pre>
<code>  def daily_question
    @question = @catechism.daily_question
    render :template =&gt; '/questions/show'
  end</code>
</pre>
<p>AFTER:</p>
<pre>
<code>  def daily_question
    @question = @catechism.daily_question
    respond_to do |wants|
      wants.html { render :template =&gt; '/questions/show' }
      wants.js { render_json @question.to_json }
    end
  end</code>
</pre>
<p>So now I get a <a href="http://www.catechizeme.com/catechisms/westminster_shorter_catechism/daily_question">daily catechism question from the CatechizeMe website</a> or via the Google Gadget using JSON:</p>
<p><script src="http://www.gmodules.com/ig/ifr?url=http://www.catechizeme.com/static/google_gadget.xml&amp;up_catechism=westminster_shorter_catechism&amp;synd=open&amp;w=320&amp;h=150&amp;title=CatechizeMe+%3A+Daily+Catechism&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2009/07/13/rails-respond_to-made-it-too-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microapps Encourage Hacking</title>
		<link>http://www.mckinneystation.com/2008/06/03/microapps-encourage-hacking/</link>
		<comments>http://www.mckinneystation.com/2008/06/03/microapps-encourage-hacking/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 14:54:46 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[GitHub]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[RailsConf]]></category>
		<category><![CDATA[SQLite]]></category>
		<category><![CDATA[Sinatra]]></category>
		<category><![CDATA[SliceHost]]></category>
		<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[microapps]]></category>
		<category><![CDATA[mongrel]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2008/06/03/microapps-encourage-hacking/</guid>
		<description><![CDATA[photo by Jeff Belmonte
I am back from RailsConf 2008 and two of my favorite talks were &#8220;Microapps for Fun and Profit&#8221; by Erik Kastner and &#8220;23 Hacks&#8221; by Nathaniel Talbott.  I have recently been toying around with creating small little apps where I can try out new ideas and sharpen my skills.  
One [...]]]></description>
			<content:encoded><![CDATA[<div class="shadow left"><img src='http://www.mckinneystation.com/wp-content/uploads/2008/06/small_train.jpg' alt='Small Train' /><br/><span class="credit">photo by <a href="http://www.flickr.com/photos/jeffbelmonte/">Jeff Belmonte</a></span></div>
<p>I am back from <a href="http://www.railsconf.com">RailsConf 2008</a> and two of my favorite talks were &#8220;<a href="http://metaatem.net/2008/05/30/my-railsconf-talk">Microapps for Fun and Profit</a>&#8221; by <a href="http://metaatem.net/">Erik Kastner</a> and &#8220;<a href="http://blog.talbott.ws/articles/2008/5/31/23-hacks-railsconf-2008">23 Hacks</a>&#8221; by <a href="http://blog.talbott.ws/">Nathaniel Talbott</a>.  I have recently been toying around with creating small little apps where I can try out new ideas and sharpen my skills.  </p>
<p>One of those apps is the <a href="http://www.templategeneratorpro.com">Template Generator Pro</a>.  It was a really simple little app the generates funny <a href="http://coverletters.templategeneratorpro.com">cover letters</a>, <a href="http://twoweeknotice.templategeneratorpro.com">two week notices</a>, <a href="http://jobs.templategeneratorpro.com">job postings</a>, and more.  Not a lot to it.  What did I learn?  I deployed it to <a href="http://www.slicehost.com">SliceHost</a> (my previous apps have been deployed to <a href="http://dreamhost.com/">DreamHost</a>) and starting learning more about hosting and system administration.  I also had a chance to port the <a href="http://nonsense.sourceforge.net/">Nonsense Perl script</a> to <a href="http://nonsense.rubyforge.org/">a Ruby version</a>.  That was fun!</p>
<h2>Tools of the Trade</h2>
<p>What am I using for my microapps?  The first ones (<a href="http://www.catechizeme.com">CathechizeMe</a> and <a href="http://www.templategeneratorpro.com">TemplateGeneratorPro</a>) were small Rails applications.  But that is alot of overhead and not a lot of &#8220;micro&#8221; in that.  So for new things I am looking at <a href="http://sinatrarb.com/">Sinatra</a> for a framework and <a href="http://stone.rubyforge.org/">Stone</a> or <a href="http://ar.rubyonrails.com/">ActiveRecord</a> with <a href="http://www.sqlite.org/">SQLite</a> for persistance.  I like <a href="http://jquery.com/">JQuery</a> for the Javascript and <a href="http://code.google.com/p/blueprintcss/">BluePrint CSS</a> helps me make it look pretty fairly easily.  <a href="http://www.oswd.org/">Open Source Web Design</a> and <a href="http://www.openwebdesign.org">Open Web Design</a> help to stimulate the creative aspects of the designs.</p>
<h2>Check it Out</h2>
<p>You can see some my little hacks being stored on my GitHub account:  <a href="http://www.github.com/gdagley">http://www.github.com/gdagley</a>. I also have some projects from <a href="http://www.thinkrelevance.com">work</a> at <a href="http://www.github.com/relevance">http://www.github.com/relevance</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2008/06/03/microapps-encourage-hacking/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>One Way I Got JQuery To Play Nicely With Rails</title>
		<link>http://www.mckinneystation.com/2007/09/13/one-way-i-got-jquery-to-play-nicely-with-rails/</link>
		<comments>http://www.mckinneystation.com/2007/09/13/one-way-i-got-jquery-to-play-nicely-with-rails/#comments</comments>
		<pubDate>Thu, 13 Sep 2007 16:51:47 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2007/09/13/one-way-i-got-jquery-to-play-nicely-with-rails/</guid>
		<description><![CDATA[photo by dave_mcmt

I love JQuery!  I did a short 10-15 minute presentation at the last Dallas.rb to let others in on the joys of using JQuery.
But one thing that doesn&#8217;t work right when using JQuery with Rails applications is the JQuery AJAX features and Rails respond_to.  It turns out the Rails it looking [...]]]></description>
			<content:encoded><![CDATA[<div class="shadow left"><img src='http://www.mckinneystation.com/wp-content/uploads/2007/09/bridge.jpg' alt='Bridge' /><br/><span class="credit">photo by <a href="http://www.flickr.com/photos/dave_mcmt/">dave_mcmt</a><br/><br />
</span></div>
<p>I love JQuery!  I did a <a href="http://www.mckinneystation.com/2007/08/31/lightning-talks-at-dallasrb/">short 10-15 minute presentation at the last Dallas.rb</a> to let others in on the joys of using JQuery.</p>
<p>But one thing that doesn&#8217;t work right when using JQuery with Rails applications is the JQuery AJAX features and Rails respond_to.  It turns out the Rails it looking for a specific request header, but JQuery sends something different one.  </p>
<p  class="clearfix">It is easily solved with this at the top of your application.js file:</p>
<pre>
<code>$.ajaxSetup({
  beforeSend: function(xhr) {xhr.setRequestHeader("Accept", "text/javascript");}
});</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2007/09/13/one-way-i-got-jquery-to-play-nicely-with-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lightning Talks at Dallas.rb</title>
		<link>http://www.mckinneystation.com/2007/08/31/lightning-talks-at-dallasrb/</link>
		<comments>http://www.mckinneystation.com/2007/08/31/lightning-talks-at-dallasrb/#comments</comments>
		<pubDate>Sat, 01 Sep 2007 04:56:30 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
				<category><![CDATA[Dallas]]></category>
		<category><![CDATA[Development Environment]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[Web Developer Toolbar]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[hpricot]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2007/08/31/lightning-talks-at-dallasrb/</guid>
		<description><![CDATA[photo by anyoungkevin

We are doing lightning talks at this month&#8217;s dallas.rb meeting.  I decided to give the group some choice of what I would present.
I will do a short one on &#8220;Why Firefox Makes Me Look Good&#8221; or &#8220;Better Web App Development using Firefox and a Buttload of Extensions&#8221;
I can also do one &#8220;JQuery: [...]]]></description>
			<content:encoded><![CDATA[<div class="shadow right"><img src='http://www.mckinneystation.com/wp-content/uploads/2007/08/lightning.jpg' alt='Lightning' /><br/><span class="credit">photo by <a href="http://flickr.com/photos/kevinmiller/">anyoungkevin</a><br />
</span></div>
<p>We are doing lightning talks at this month&#8217;s <a href="http://www.dallasrb.org">dallas.rb</a> meeting.  I decided to give the group some choice of what I would present.</p>
<p>I will do a short one on &#8220;Why Firefox Makes Me Look Good&#8221; or &#8220;Better Web App Development using Firefox and a <a href="http://answers.google.com/answers/threadview?id=511287">Buttload</a> of Extensions&#8221;</p>
<p>I can also do one &#8220;JQuery: <a href="http://www.free-lyrics.org/Aaron-Neville/4605-Dont-Know-Much.html">I Don&#8217;t Know Much, But I Know I Love You</a> &#8221;</p>
<p>And since neither of those are Ruby related, I will throw another one out there: &#8220;<a href="http://www.youtube.com/watch?v=dpvyhGnF9_E">Tighter Abs</a>: XML Situps Made Easy With Ruby&#8221; </p>
<p>I&#8217;ll let everyone decide which ones you want to hear more about.</p>
<p><strong>Update</strong></p>
<p>I only did the JQuery presentation and <a href='http://www.mckinneystation.com/wp-content/uploads/2007/09/jquery.pdf' title='JQuery Presentation'>here are the slides</a> (although they were much more interesting in person).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2007/08/31/lightning-talks-at-dallasrb/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Why Firefox Rocks For Web Development</title>
		<link>http://www.mckinneystation.com/2007/05/08/why-firefox-rocks-for-web-development/</link>
		<comments>http://www.mckinneystation.com/2007/05/08/why-firefox-rocks-for-web-development/#comments</comments>
		<pubDate>Wed, 09 May 2007 03:47:11 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development Environment]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Selenium]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[Web Developer Toolbar]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2007/05/08/why-firefox-rocks-for-web-development/</guid>
		<description><![CDATA[Because my friend Matt was so impressed with a Firefox extension I showed him, I thought I would share some of my other favorites.
photo by longhorndave
What Extensions I Am Using Right Now

Web Developer Toolbar &#8211; Just about everything you could want to do HTML and CSS, plus I can edit AND save the CSS changes [...]]]></description>
			<content:encoded><![CDATA[<p>Because my friend Matt was <a href="http://26mi.com/tech-tips/sync-your-firefox-bookmarks-with-foxmarks/">so impressed with a Firefox extension I showed him</a>, I thought I would share some of my other favorites.</p>
<div class="shadow right"><img src='http://www.mckinneystation.com/wp-content/uploads/2007/05/wild_west_railroad.jpg' alt='Wild West Railroad' /><br/><span class="credit">photo by <a href="http://www.flickr.com/photos/davidw/">longhorndave</a></span></div>
<h2>What Extensions I Am Using Right Now</h2>
<ul>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/60">Web Developer Toolbar</a> &#8211; Just about everything you could want to do HTML and CSS, plus I can edit AND save the CSS changes I was playing around with.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/1843">Firebug</a> &#8211; So much goodness.  Especially debugging JavaScript and looking over AJAX requests and responses.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/655">View Source Chart</a> &#8211; Makes looking at HTML source bearable.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/271">ColorZilla</a> &#8211; a color picker for pulling colors off of web pages.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/249">HTMLValidator</a> &#8211; because it is too easy to miss a closing tag somewhere that messes everything up.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/2064">DummyLipsum</a> &#8211; when you need some filler content.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/2079">SeleniumIDE</a> &#8211; great little utility for helping to write Selenium tests for functional testing.</li>
</ul>
<div class="shadow left"><img src='http://www.mckinneystation.com/wp-content/uploads/2007/05/big_thunder_mt.jpg' alt='Big Thunder Mountain' /><br/><span class="credit">photo by <a href="http://www.flickr.com/photos/edrussell/">meshmar2</a></span></div>
<h2>Not to mention</h2>
<ul>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/10">Adblock</a> &#8211; no more ads.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/1136">Adblock Filterset.G</a> &#8211; no more ads just got easier.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/3209">GTDInbox</a> &#8211; for when I think that I am <a href="http://www.davidco.com/">Getting Things Done</a></li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/2410">Foxmarks</a> &#8211; because I have too many computers and too many bookmarks.</li>
</ul>
<p>Got a favorite?  I&#8217;d like to hear about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2007/05/08/why-firefox-rocks-for-web-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is Your JavaScript Getting In The Way?</title>
		<link>http://www.mckinneystation.com/2007/05/01/is-your-javascript-getting-in-the-way/</link>
		<comments>http://www.mckinneystation.com/2007/05/01/is-your-javascript-getting-in-the-way/#comments</comments>
		<pubDate>Tue, 01 May 2007 15:21:58 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Prototype]]></category>
		<category><![CDATA[RJS]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[script.aculo.us]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2007/05/01/is-your-javascript-getting-in-the-way/</guid>
		<description><![CDATA[photo by monique72

With all of the talk these days of Web 2.0 and the fancy, shiny, draggable, refreshable, blinking, glowing components in web applications, I wonder how many of the will still work when JavaScript is turn off or not even present (yes, it still happens).   And how is the usability and accessibility [...]]]></description>
			<content:encoded><![CDATA[<div class="shadow right"><img src='http://www.mckinneystation.com/wp-content/uploads/2007/05/tram.jpg' alt='Tram Sign on Floor' /><br/><span class="credit">photo by <a href="http://www.sxc.hu/profile/monique72">monique72</a></span>
</div>
<p>With all of the talk these days of Web 2.0 and the fancy, shiny, draggable, refreshable, blinking, glowing components in web applications, I wonder how many of the will still work when JavaScript is turn off or not even present (yes, it still happens).   And how is the usability and accessibility of the application affected when so much of the interaction happens through JavaScript that doesn&#8217;t degrade?</p>
<p>I have been taking a look at creating a fully functional application, without any fancy Javascipt or AJAX, and then <a href="http://onlinetools.org/articles/unobtrusivejavascript/">adding the extra functionality unobtrusively</a>.  To force myself to learn how to do this, I stopped using <a href="http://www.prototypejs.org/">Prototype</a>, <a href="http://script.aculo.us">script.aculo.us</a>, and the Ruby on Rails helpers with RJS, and I started using <a href="http://www.jquery.com">JQuery</a>.  Two things happened: 1. I started to better understand how AJAX works and can enhance my application. 2. I found out I really like JQuery.</p>
<p>More on my JQuery experiences later.  Now back to adding cool features, unobtrusively.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2007/05/01/is-your-javascript-getting-in-the-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Interesting Content Coming Soon!</title>
		<link>http://www.mckinneystation.com/2007/04/24/interesting-content-coming-soon/</link>
		<comments>http://www.mckinneystation.com/2007/04/24/interesting-content-coming-soon/#comments</comments>
		<pubDate>Tue, 24 Apr 2007 23:50:07 +0000</pubDate>
		<dc:creator>Geoffrey</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Dallas]]></category>
		<category><![CDATA[Entrepreneurial]]></category>
		<category><![CDATA[Fort Worth]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[North Texas]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://www.mckinneystation.com/2007/04/24/interesting-content-coming-soon/</guid>
		<description><![CDATA[It finally happened.  McKinney Station got a blog!  Right now there is not much here, but should be changing very soon.  I have all sorts of articles in my head wanting, no, demanding to get out.  Thoughts on web applications, Ruby, Rails, Java, xHTML, CSS, JavaScript and more.
Check back soon for [...]]]></description>
			<content:encoded><![CDATA[<p>It finally happened.  McKinney Station got a blog!  Right now there is not much here, but should be changing very soon.  I have all sorts of articles in my head wanting, no, demanding to get out.  Thoughts on web applications, Ruby, Rails, Java, xHTML, CSS, JavaScript and more.</p>
<p>Check back soon for my latest thoughts and ideas.  Welcome to the Station, this train is about the leave.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mckinneystation.com/2007/04/24/interesting-content-coming-soon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
