<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:thr="http://purl.org/syndication/thread/1.0">
  <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/05/jquery-ftw-may-16.html" />
  <link rel="self" type="application/atom+xml" href="http://www.insideria.com/atom.xml" />
  <id>tag:www.insideria.com,2009://34/tag:www.insideria.com,2009://34.36248-</id>
  <updated>2009-11-16T15:01:22Z</updated>
  <title>Comments for jQuery FTW (May 16) (http://www.insideria.com/2009/05/jquery-ftw-may-16.html)</title>
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.21-en</generator>
  <entry>
    <id>tag:www.insideria.com,2009://34.36248</id>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/05/jquery-ftw-may-16.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://blogs.oreilly.com/cgi-bin/mt/mt-atom.cgi/weblog/blog_id=34/entry_id=36248" title="jQuery FTW (May 16)" />
    <published>2009-05-16T18:48:12Z</published>
    <updated>2009-05-16T19:10:58Z</updated>
    <title>jQuery FTW (May 16)</title>
    <summary>Quick set of links related to jQuery development.</summary>
    <author>
      <name>Raymond Camden</name>
      <uri>http://www.coldfusionjedi.com</uri>
    </author>
    
    <category term="Blogs" />
    
    <content type="html" xml:lang="en" xml:base="http://www.insideria.com/">
      <![CDATA[<p>Good afternoon, programs. Here is my latest set of interesting/cool/just plain neat jQuery-related links. As always, feel free to drop me a line with something you think should be featured and I'll be happy to include it.</p>

<ul>
<li>First up is <a href="http://www.unwrongest.com/projects/lazy/">Lazy</a>, a on-demand plugin loader for jQuery. I have to be honest, two months ago I would have thought this to be overkill, but after working on a project with a lot of jQuery plugins going on, this is something that could really help us manage the page dependencies.</li>
<li>From very useful to - well, maybe more cool then useful, this blog post describes how you can <a href="http://blog.themeforest.net/tutorials/simulate-gravity-with-jquery/">simulate gravity with jQuery</a>. You may never need it, but it's darn cool.</li>
<li>Another good blog post: <a href="http://blarnee.com/wp/20-new-examples-of-advanced-jquery-uis-in-action/">20 New examples of advanced jQuery UI&#8217;s in action</a> I like posts like this as sometimes you need to see good examples to really spur your imagination.</li>
<li>Another list, and another 20 demos, check out: <a href="http://www.noupe.com/css/20-wicked-proof-of-concepts-for-better-use-of-jquerycss.html"> 20+ Wicked Proof of Concepts for Better use of jQuery/CSS</a></li>
<li>I'll link to this one even though it uses PHP. <a href="http://briancray.com/2009/05/06/twitter-style-alert-jquery-cs-php/">How to create a Twitter-style alert with jQuery, CSS, and PHP</a> is a blog article that demonstrates a 'slide down alert' on a web page. I wasn't even aware Twitter does this, but I do all my twittering via a client, not the web site.</li>
<li>Another interesting blog post, <a href="http://james.padolsey.com/javascript/functionless-event-handlers-in-jquery/">Function'less event handlers in jQuery</a>, discusses an alternative way of handling event handers. I'll be honest and say I don't quite get it yet, but it is on my bookmarks for futher review.</li>
<li>Next up, Hal Helms has another in his Learning jQuery series: <a href="http://www.halhelms.com/blog/index.cfm/2009/5/8/Learning-jQuery-Day-11-Saving-Table-State-with-Cookies">Day 11 - Saving Table State with Cookies</a> The title pretty much says it all. Be sure to check the other 'days' as well.</li>
</ul>]]>
      
    </content>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.36248-comment:2059759</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.36248" type="text/html" href="http://www.insideria.com/2009/05/jquery-ftw-may-16.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/05/jquery-ftw-may-16.html#comment-2059759" />
    <title>Comment from Kyle Hayes on 2009-05-16</title>
    <author>
        <name>Kyle Hayes</name>
        <uri>http://www.kylehayes.info/</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://www.kylehayes.info/">
        <![CDATA[<p>I wonder if Lazy loads asynchronous or synchronous. Does it provide an event when the files are done loading? I would be concerned with trying to use a function after I've called $.lazy() if it hadn't loaded up my library yet. Especially if it was a larger library.</p>]]>
    </content>
    <published>2009-05-16T19:40:54Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.36248-comment:2059773</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.36248" type="text/html" href="http://www.insideria.com/2009/05/jquery-ftw-may-16.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/05/jquery-ftw-may-16.html#comment-2059773" />
    <title>Comment from Albert on 2009-05-17</title>
    <author>
        <name>Albert</name>
        <uri>http://blog.csdn.net/zinking3</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://blog.csdn.net/zinking3">
        <![CDATA[<p>wow , a lot of great RIAs <br />
thanks for sharing, really.</p>]]>
    </content>
    <published>2009-05-17T09:14:10Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.36248-comment:2059797</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.36248" type="text/html" href="http://www.insideria.com/2009/05/jquery-ftw-may-16.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/05/jquery-ftw-may-16.html#comment-2059797" />
    <title>Comment from Brian Cray on 2009-05-17</title>
    <author>
        <name>Brian Cray</name>
        <uri>http://briancray.com</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://briancray.com">
        <![CDATA[<p>Thanks for posting my article "How to create a Twitter-style alert with jQuery, CSS, and PHP" Raymond! Really appreciated!</p>]]>
    </content>
    <published>2009-05-18T00:57:39Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.36248-comment:2059831</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.36248" type="text/html" href="http://www.insideria.com/2009/05/jquery-ftw-may-16.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/05/jquery-ftw-may-16.html#comment-2059831" />
    <title>Comment from Travis Almand on 2009-05-18</title>
    <author>
        <name>Travis Almand</name>
        <uri>http://www.travisalmand.net</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://www.travisalmand.net">
        <![CDATA[<p>The Function'less event handlers in jQuery is an interesting idea, especially since you would be able to fall back on the traditional function callbacks if needed.</p>

<p>But I'm not sure how I feel about it. There's nothing wrong with the current way and the guy admits that he likes this way simply because it cleans up the code. But that's a subjective thing, I have no problem reading code written in the usual way.</p>

<p>But like I said, he fully admits this.</p>

<p>Sometimes I like to use an anonymous function for the event handler, do some things pertaining to that and then call another function for other reasons. With this method I don't see how you could do that so I'd have to fall back on the traditional method.</p>

<p>Then he mentions bloat but I'm not sure what this actually saves you. Keeping in mind the amount of code needed to get this to work, there has to be some threshold with number of event handlers used before this starts saving lines of code. His extension code is about 50 lines, which I'm sure can be squeezed down. But that might be considered a lot of code for one specific use.</p>

<p>If you don't cross the mentioned event handler threshold, or don't even use it at all, then the included code is actually causing bloat in the long run. That's often one of the main reasons for not using a framework over writing your own code because of framework features that you don't use. But then again, this is an extension so you just load it up on the needed project and use it as required.</p>

<p>In the comments there were suggestions of putting this into jQuery itself, I think that would be a mistake.</p>]]>
    </content>
    <published>2009-05-18T16:14:56Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.36248-comment:2060103</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.36248" type="text/html" href="http://www.insideria.com/2009/05/jquery-ftw-may-16.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/05/jquery-ftw-may-16.html#comment-2060103" />
    <title>Comment from Jan Jarfalk on 2009-05-21</title>
    <author>
        <name>Jan Jarfalk</name>
        <uri>http://www.unwrongest.com</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://www.unwrongest.com">
        <![CDATA[<p>@Kyle Hayes</p>

<p>Im not sure if I understand what you mean, but what happens when you do $.lazy('jquery.elastic.js','elastic'); is extending jquery with a function called elastic.</p>

<p>Then when you call that function by doing ie $('.foo').elastic(); lazy will be loading up all the dependencies first css, then js and then the actual plugin. And then overwrite the function elastic with the the actual plugin. And when that is done (loaded and inserted to the html page) its going to run $('.foo').elastic(); again..which is now the plugin inside jquery.elastic.js and completely separated from lazy.</p>

<p>You wont be using $.lazy() to load up your plugins. The loading will be done when you call for the actual plugins ie $.elastic();</p>

<p>Haven't tried with extremely large libraries and plugins.. but handles Jquery UI with both css and js dependencies as expected.<br />
</p>]]>
    </content>
    <published>2009-05-21T17:03:26Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.36248-comment:2068500</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.36248" type="text/html" href="http://www.insideria.com/2009/05/jquery-ftw-may-16.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/05/jquery-ftw-may-16.html#comment-2068500" />
    <title>Comment from Fulltilt on 2009-07-17</title>
    <author>
        <name>Fulltilt</name>
        <uri>http://www.bonus-fulltiltpoker.org/</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://www.bonus-fulltiltpoker.org/">
        <![CDATA[<p>I sent this url to my coder as he use jquery with Lay plugin,thanks for him</p>]]>
    </content>
    <published>2009-07-18T01:16:14Z</published>
  </entry>

</feed
