<?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>Rey Bango &#187; AJAX</title>
	<atom:link href="http://blog.reybango.com/category/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.reybango.com</link>
	<description>JavaScript, HTML, CSS &#38; Random Stuff...</description>
	<lastBuildDate>Wed, 08 Sep 2010 23:44:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Tell Me the Development Problems that Script Junkie Can Try to Solve via Solutions-based Content</title>
		<link>http://blog.reybango.com/2010/08/03/tell-me-the-development-problems-that-script-junkie-can-try-to-solve-via-solutions-based-content/</link>
		<comments>http://blog.reybango.com/2010/08/03/tell-me-the-development-problems-that-script-junkie-can-try-to-solve-via-solutions-based-content/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 14:46:33 +0000</pubDate>
		<dc:creator>Rey Bango</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.reybango.com/?p=1119</guid>
		<description><![CDATA[My biggest focus at Microsoft is the Script Junkie website. We use it to publish really great cross-browser, solutions-based content to help developers improve their JavaScript, HTML, &#038; CSS development efforts. The Script Junkie team is working on our content plan for the next six months and we&#8217;re looking to identify developer problem areas that [...]


Related posts:<ol><li><a href='http://blog.reybango.com/2010/05/10/use-scriptsrc-net-to-copy-and-paste-the-script-tag-for-your-favorite-javascript-library/' rel='bookmark' title='Permanent Link: Use ScriptSrc.net to Copy and Paste the Script tag for Your Favorite JavaScript Library'>Use ScriptSrc.net to Copy and Paste the Script tag for Your Favorite JavaScript Library</a> <small>One of the things I hate about using CDNs is...</small></li>
<li><a href='http://blog.reybango.com/2010/04/29/the-big-list-of-javascript-css-and-html-development-tools-libraries-projects-and-books/' rel='bookmark' title='Permanent Link: The Big List of JavaScript, CSS, and HTML Development Tools, Libraries, Projects, and Books'>The Big List of JavaScript, CSS, and HTML Development Tools, Libraries, Projects, and Books</a> <small>NOTE: I&#8217;ve moved the list to it&#8217;s own dedicated page...</small></li>
<li><a href='http://blog.reybango.com/2010/07/09/not-using-jquery-javascript-templates-youre-really-missing-out/' rel='bookmark' title='Permanent Link: Not Using jQuery JavaScript Templates? You&#8217;re Really Missing Out.'>Not Using jQuery JavaScript Templates? You&#8217;re Really Missing Out.</a> <small>In preparation for my upcoming talk on jQuery Templates, I&#8217;ve...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>My biggest focus at Microsoft is the <a href="http://msdn.microsoft.com/en-us/scriptjunkie/">Script Junkie website</a>. We use it to publish really great cross-browser, solutions-based content to help developers improve their JavaScript, HTML, &#038; CSS development efforts.</p>
<p>The <a href="http://msdn.microsoft.com/en-us/scriptjunkie/">Script Junkie</a> team is working on our content plan for the next six months and we&#8217;re looking to identify developer problem areas that we can provide solutions for. So I&#8217;m reaching out to my blog readers in an effort to understand what type of things pain you. Here are some examples of problem areas that we&#8217;ve heard of:</p>
<ul>
<li>Designing and implementing for multiple devices like 42&#8243; LCD TVs to 480px Android device</li>
<li>Getting users to upgrade their browsers in a friendly way</li>
<li>Developing cross-browser compatible websites with minimal hacks</li>
<li>How realistic is it to begin using HTML5 &#038; CSS3 today?</li>
</ul>
<p><strong>It&#8217;s important to note that that we&#8217;re not looking for answers to the above problem areas at this time</strong>. These are examples to demonstrate the type of concerns we&#8217;re hearing. We&#8217;re looking for more questions that hopefully we can answer via solutions-based articles and code. So if you have thoughts on wide-spread development problems that you&#8217;d like to see tackled, please comment below. Remember that <a href="http://msdn.microsoft.com/en-us/scriptjunkie/">Script Junkie</a> focuses on JavaScript, HTML and CSS so please be sure to keep that in mind when listing out your pain points.</p>
<p>We&#8217;ll roll-up your comments and then focus on the top 10 things listed by the development community. </p>
<p>Thanks for your help! </p>


<p>Related posts:<ol><li><a href='http://blog.reybango.com/2010/05/10/use-scriptsrc-net-to-copy-and-paste-the-script-tag-for-your-favorite-javascript-library/' rel='bookmark' title='Permanent Link: Use ScriptSrc.net to Copy and Paste the Script tag for Your Favorite JavaScript Library'>Use ScriptSrc.net to Copy and Paste the Script tag for Your Favorite JavaScript Library</a> <small>One of the things I hate about using CDNs is...</small></li>
<li><a href='http://blog.reybango.com/2010/04/29/the-big-list-of-javascript-css-and-html-development-tools-libraries-projects-and-books/' rel='bookmark' title='Permanent Link: The Big List of JavaScript, CSS, and HTML Development Tools, Libraries, Projects, and Books'>The Big List of JavaScript, CSS, and HTML Development Tools, Libraries, Projects, and Books</a> <small>NOTE: I&#8217;ve moved the list to it&#8217;s own dedicated page...</small></li>
<li><a href='http://blog.reybango.com/2010/07/09/not-using-jquery-javascript-templates-youre-really-missing-out/' rel='bookmark' title='Permanent Link: Not Using jQuery JavaScript Templates? You&#8217;re Really Missing Out.'>Not Using jQuery JavaScript Templates? You&#8217;re Really Missing Out.</a> <small>In preparation for my upcoming talk on jQuery Templates, I&#8217;ve...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.reybango.com/2010/08/03/tell-me-the-development-problems-that-script-junkie-can-try-to-solve-via-solutions-based-content/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>The Essential List of JavaScript, jQuery, HTML &amp; CSS Books to Make You a Better Web Developer</title>
		<link>http://blog.reybango.com/2010/07/20/the-essential-list-of-javascript-jquery-html-css-books-to-make-you-a-better-web-developer/</link>
		<comments>http://blog.reybango.com/2010/07/20/the-essential-list-of-javascript-jquery-html-css-books-to-make-you-a-better-web-developer/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 19:37:43 +0000</pubDate>
		<dc:creator>Rey Bango</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Books]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://blog.reybango.com/?p=1085</guid>
		<description><![CDATA[Over the years, I&#8217;ve read or been recommended a number of books which are essential reading for professional web developers. I&#8217;ve compiled the list of books below to help the community find a comprehensive list of good books that can help them be better coders. JavaScript Professional JavaScript for Web Developers &#8211; My new favorite [...]


Related posts:<ol><li><a href='http://blog.reybango.com/2010/04/29/the-big-list-of-javascript-css-and-html-development-tools-libraries-projects-and-books/' rel='bookmark' title='Permanent Link: The Big List of JavaScript, CSS, and HTML Development Tools, Libraries, Projects, and Books'>The Big List of JavaScript, CSS, and HTML Development Tools, Libraries, Projects, and Books</a> <small>NOTE: I&#8217;ve moved the list to it&#8217;s own dedicated page...</small></li>
<li><a href='http://blog.reybango.com/the-big-list-of-javascript-css-and-html-development-tools-libraries-projects-and-books/' rel='bookmark' title='Permanent Link: The Big List of JavaScript, CSS, and HTML Development Tools, Libraries, Projects, and Books'>The Big List of JavaScript, CSS, and HTML Development Tools, Libraries, Projects, and Books</a> <small>I&#8217;ve been meaning to do a roll-up of top JavaScript,...</small></li>
<li><a href='http://blog.reybango.com/2010/05/11/video-interviews-part-2-nicholas-zakas-principal-front-end-engineer-at-yahoo-on-jquery-performance-and-menno-van-slooten-on-his-automated-ui-testing-framework-for-jquery/' rel='bookmark' title='Permanent Link: Video Interviews Part 2 &#8211; Nicholas Zakas, Principal Front-end Engineer at Yahoo! on jQuery Performance and Menno van Slooten on his Automated UI Testing Framework for jQuery'>Video Interviews Part 2 &#8211; Nicholas Zakas, Principal Front-end Engineer at Yahoo! on jQuery Performance and Menno van Slooten on his Automated UI Testing Framework for jQuery</a> <small>I got some more videos edited and uploaded for you...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Over the years, I&#8217;ve read or been recommended a number of books which are essential reading for professional web developers. I&#8217;ve compiled the list of books below to help the community find a comprehensive list of good books that can help them be better coders. </p>
<h3>JavaScript</h3>
<p><a href="http://www.amazon.com/gp/product/047022780X?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=047022780X">Professional JavaScript for Web Developers</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=047022780X" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> &#8211; My new favorite book. Almost 1,000 pages of VERY detailed JavaScript information. Written by Nicholas Zakas, Yahoo! Principal Front-end Engineer for Yahoo!&#8217;s home page and recommended by the YUI team as well. BUY THIS BOOK!</p>
<p><a href="http://www.amazon.com/gp/product/0596101996?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0596101996">JavaScript: The Definitive Guide</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=0596101996" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> &#8211; Considered the Bible of JavaScript for its thorough coverage of JavaScript. You need to have this in your library, even as a reference.</p>
<p><a href="http://www.amazon.com/gp/product/1590595335?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=1590595335">DOM Scripting: Web Design with JavaScript and the Document Object Model</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=1590595335" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> &#8211; This is a good book to get you familiar with the DOM. </p>
<p><a href="http://www.amazon.com/gp/product/1590598563?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=1590598563">AdvancED DOM Scripting: Dynamic Web Design Techniques</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=1590598563" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> </p>
<p><a href="http://www.amazon.com/gp/product/1590596803?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=1590596803">Beginning JavaScript with DOM Scripting and Ajax: From Novice to Professional</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=1590596803" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> &#8211; The book by Christian Heilmann that really got me past the initial hump of plain &#8216;ole JavaScript. His writing style is awesome.</p>
<p><a href="http://www.amazon.com/gp/product/1847194141?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=1847194141">Object-Oriented JavaScript: Create scalable, reusable high-quality JavaScript applications and libraries</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=1847194141" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> &#8211; JUST BUY THIS BOOK! Stoyan did a great job of outlining OOJS principles and it&#8217;s been incredibly valuable.</p>
<p><a href="http://www.amazon.com/gp/product/0596517742?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0596517742">JavaScript: The Good Parts</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=0596517742" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> &#8211; It&#8217;s certainly a good book and I would recommend reading it after one of the more intro books like JS for Web Developer by Nicholas Zakas.</p>
<p><a href="http://www.amazon.com/gp/product/1847196705?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=1847196705">Learning jQuery 1.3</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=1847196705" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> &#8211; While covering jQuery v1.3, the techniques discussed are still useful and I still recommend the book highly.</p>
<p><a href="http://www.amazon.com/gp/product/1590597273?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=1590597273">Pro JavaScript Techniques</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=1590597273" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> &#8211; John Resig&#8217;s famous book on advanced JS techniques.</p>
<p><a href="http://www.amazon.com/gp/product/193398869X?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=193398869X">Secrets of the JavaScript Ninja</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=193398869X" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> &#8211; Still not out but considering that John Resig is that author, it&#8217;s sure to be great.</p>
<p><a href="http://www.amazon.com/gp/product/0321423305?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0321423305">ppk on JavaScript, 1/e</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=0321423305" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> &#8211; One of the first books I picked up and great overview of the language.</p>
<p><a href="http://www.amazon.com/gp/product/1590597648?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=1590597648">Accelerated DOM Scripting with Ajax, APIs, and Libraries</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=1590597648" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<p><a href="http://www.amazon.com/gp/product/0321491939?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0321491939">Ajax Security</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=0321491939" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> &#8211; Billy Hoffman is the man when it comes to Ajax security and this books shows why.</p>
<p><a href="http://www.amazon.com/gp/product/0596159773?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0596159773">jQuery Cookbook: Solutions &#038; Examples for jQuery Developers (Animal Guide)</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=0596159773" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> &#8211; Tips &#038; techniques from the jQuery team rolled up in a cookbook style. You can&#8217;t go wrong.</p>
<p><a href="http://www.amazon.com/gp/product/1935182323?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=1935182323">jQuery in Action, Second Edition</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=1935182323" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> &#8211; This is now updated for jQuery v1.4.x as well as jQuery UI 1.8.x. Definitely a must-have for jQuery developers</p>
<p><a href="http://jqueryenlightenment.com/">jQuery Enlightenment</a> &#8211; Cody Lindley did an amazing job in outlining the best jQuery techniques in this self-published book. Totally worth the price.</p>
<p><a href="http://my.safaribooksonline.com/9780321684097">Test-Driven JavaScript Development</a></p>
<p><a href="http://www.amazon.com/gp/product/0980576857?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0980576857">jQuery: Novice to Ninja</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=0980576857" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<h3>HTML &#038; CSS</h3>
<p><a href="http://www.amazon.com/gp/product/1430219203?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=1430219203">Web Standards Solutions: The Markup and Style Handbook, Special Edition</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=1430219203" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<p><a href="http://www.amazon.com/gp/product/0321509021?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0321509021">Bulletproof Web Design: Improving flexibility and protecting against worst-case scenarios with XHTML and CSS (2nd Edition)</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=0321509021" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> </p>
<p><a href="http://www.sitepoint.com/books/cssdesign1/?SID=82b54f50488243b44b6b9c7acb10731a">The Art &#038; Science Of CSS</a> &#8211; This is one of Sitepoint&#8217;s best CSS books. Loved it.</p>
<p><a href="http://www.sitepoint.com/books/css2/?SID=82b54f50488243b44b6b9c7acb10731a">HTML Utopia: Designing Without Tables Using CSS, 2nd Edition</a> &#8211; Not being a designer, I thought this book was a tremendous help in understanding how to better design sites.</p>
<p><a href="http://www.amazon.com/gp/product/1600330045?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=1600330045">Head First HTML with CSS &#038; XHTML</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=1600330045" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> &#8211; This has been my goto book for some time. The Head First books are just so great at breaking down topics in easy to understand ways and this book is no exception.</p>
<p><a href="http://www.amazon.com/gp/product/0321687299?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0321687299">Introducing HTML5 (Voices That Matter)</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=0321687299" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> &#8211; Going to get this soon mainly because it&#8217;s written by Remy Sharp and Bruce Lawson whom I respect tremendously, especially for their HTML5 &#038; CSS3 savvy.</p>
<p><a href="http://books.alistapart.com/product/html5-for-web-designers">HTML5 For Web Designers</a>  &#8211; Just got this on 7/19/10. Need to read it by it&#8217;s by Jeremy Keith and he rocks.</p>
<p><a href="http://www.amazon.com/gp/product/059615593X?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=059615593X">CSS Cookbook, 3rd Edition (Animal Guide)</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=059615593X" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> &#8211; Just picked this up on a recommendation.</p>
<p><a href="http://www.amazon.com/gp/product/0596802447?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0596802447">CSS: The Missing Manual</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=0596802447" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> &#8211; I keep hearing rave reviews about this book all over the place.</p>
<h3>Site Performance &#038; Enhancement</h3>
<p><a href="http://www.amazon.com/gp/product/0596529309?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0596529309">High Performance Web Sites: Essential Knowledge for Front-End Engineers</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=0596529309" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> &#8211; Steve Souders is the performance guru and if you want your apps to perform better, get this book and the one right below this one.</p>
<p><a href="http://www.amazon.com/gp/product/0596522304?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0596522304">Even Faster Web Sites: Performance Best Practices for Web Developers</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=0596522304" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<p><a href="http://www.amazon.com/gp/product/059680279X?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=059680279X">High Performance JavaScript (Build Faster Web Application Interfaces)</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=059680279X" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> &#8211; Again, another great book by Nicholas Zakas which outlines very important performance techniques for JavaScript applications. </p>
<p><a href="http://www.amazon.com/gp/product/0321658884?ie=UTF8&#038;tag=rebasbl-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0321658884">Designing with Progressive Enhancement: Building the Web that Works for Everyone</a><img src="http://www.assoc-amazon.com/e/ir?t=rebasbl-20&#038;l=as2&#038;o=1&#038;a=0321658884" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> &#8211; Great book on progressive enhancement by the superstars at the Filament Group.</p>
<p>This is certainly not all inclusive and I&#8217;m sure there are other books out there that have been great. If you feel very passionate about a specific title, let me know via the comments and I&#8217;ll check it out.</p>


<p>Related posts:<ol><li><a href='http://blog.reybango.com/2010/04/29/the-big-list-of-javascript-css-and-html-development-tools-libraries-projects-and-books/' rel='bookmark' title='Permanent Link: The Big List of JavaScript, CSS, and HTML Development Tools, Libraries, Projects, and Books'>The Big List of JavaScript, CSS, and HTML Development Tools, Libraries, Projects, and Books</a> <small>NOTE: I&#8217;ve moved the list to it&#8217;s own dedicated page...</small></li>
<li><a href='http://blog.reybango.com/the-big-list-of-javascript-css-and-html-development-tools-libraries-projects-and-books/' rel='bookmark' title='Permanent Link: The Big List of JavaScript, CSS, and HTML Development Tools, Libraries, Projects, and Books'>The Big List of JavaScript, CSS, and HTML Development Tools, Libraries, Projects, and Books</a> <small>I&#8217;ve been meaning to do a roll-up of top JavaScript,...</small></li>
<li><a href='http://blog.reybango.com/2010/05/11/video-interviews-part-2-nicholas-zakas-principal-front-end-engineer-at-yahoo-on-jquery-performance-and-menno-van-slooten-on-his-automated-ui-testing-framework-for-jquery/' rel='bookmark' title='Permanent Link: Video Interviews Part 2 &#8211; Nicholas Zakas, Principal Front-end Engineer at Yahoo! on jQuery Performance and Menno van Slooten on his Automated UI Testing Framework for jQuery'>Video Interviews Part 2 &#8211; Nicholas Zakas, Principal Front-end Engineer at Yahoo! on jQuery Performance and Menno van Slooten on his Automated UI Testing Framework for jQuery</a> <small>I got some more videos edited and uploaded for you...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.reybango.com/2010/07/20/the-essential-list-of-javascript-jquery-html-css-books-to-make-you-a-better-web-developer/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>jQuery JavaScript Templates Tutorial: Inline Expressions and Code Blocks</title>
		<link>http://blog.reybango.com/2010/07/14/jquery-javascript-templates-tutorial-inline-expressions-and-code-blocks/</link>
		<comments>http://blog.reybango.com/2010/07/14/jquery-javascript-templates-tutorial-inline-expressions-and-code-blocks/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 12:14:37 +0000</pubDate>
		<dc:creator>Rey Bango</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://blog.reybango.com/?p=1065</guid>
		<description><![CDATA[So far in my series on jQuery JavaScript Templating, I&#8217;ve showed how to create a basic jQuery JavaScript template and then nest templates for increased layout flexibility and maintainability. If you haven&#8217;t read those two posts, I highly recommend you do so you can understand the concepts below. Now, let&#8217;s dive into two other techniques [...]


Related posts:<ol><li><a href='http://blog.reybango.com/2010/07/12/jquery-javascript-templates-tutorial-nesting-templates/' rel='bookmark' title='Permanent Link: jQuery JavaScript Templates Tutorial: Nesting Templates'>jQuery JavaScript Templates Tutorial: Nesting Templates</a> <small>In my last post, I presented an intro to how...</small></li>
<li><a href='http://blog.reybango.com/2010/07/09/not-using-jquery-javascript-templates-youre-really-missing-out/' rel='bookmark' title='Permanent Link: Not Using jQuery JavaScript Templates? You&#8217;re Really Missing Out.'>Not Using jQuery JavaScript Templates? You&#8217;re Really Missing Out.</a> <small>In preparation for my upcoming talk on jQuery Templates, I&#8217;ve...</small></li>
<li><a href='http://blog.reybango.com/2010/07/08/im-presenting-on-jquery-templates-at-thinkvitamins-jquery-online-conference/' rel='bookmark' title='Permanent Link: I&#8217;m Presenting on jQuery Templates at ThinkVitamin&#8217;s jQuery Online Conference'>I&#8217;m Presenting on jQuery Templates at ThinkVitamin&#8217;s jQuery Online Conference</a> <small>This coming Monday (7/12/2010), I&#8217;ll be one of the speakers...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>So far in my series on jQuery JavaScript Templating, I&#8217;ve showed how to <a href="http://blog.reybango.com/2010/07/09/not-using-jquery-javascript-templates-youre-really-missing-out/">create a basic jQuery JavaScript template</a> and then <a href="http://blog.reybango.com/2010/07/12/jquery-javascript-templates-tutorial-nesting-templates/">nest templates</a> for increased layout flexibility and maintainability. If you haven&#8217;t read those two posts, I highly recommend you do so you can understand the concepts below.</p>
<p>Now, let&#8217;s dive into two other techniques available in the <a href="http://github.com/nje/jquery-tmpl">Microsoft jQuery Templates plugin</a>; inline expressions and code blocks.</p>
<h2>Inline Expressions</h2>
<p>Being able to use a template to create a succinct layout is very powerful but without the ability to manipulate the data that&#8217;s being rendered, you&#8217;d probably find templates a lot less useful. That&#8217;s where inline expressions come in. Inline expressions allow you to use common JavaScript expressions to effect a change in the way your data is rendered. Using a slightly modified version of the data from my last tutorial, I can show you what I mean. Here&#8217;s the data:</p>
<pre class="brush: jscript;">
var clientData = [
     { first: &quot;Rey&quot;, last: &quot;Bango&quot;, age: 42, id: 1, phone: [ &quot;954-600-1234&quot;, &quot;954-355-5555&quot; ] },
     { first: &quot;Mark&quot;, last: &quot;Goldberg&quot;, age: 51, id: 2, phone: [&quot;954-600-1234&quot;, &quot;954-355-5555&quot;] },
     { first: &quot;Jen&quot;, last: &quot;Statford&quot;, age: &quot;25&quot;, id: 3, phone: [&quot;954-600-1234&quot;, &quot;954-355-5555&quot;] }
 ];
</pre>
<p>What I did was break out the <em>&#8220;name&#8221;</em> attribute into <em>&#8220;first&#8221;</em> and <em>&#8220;last&#8221;</em> name fields. Now, say I wanted to render the full name in my template. I would use the following <strong>inline expression</strong> to do so:</p>
<pre class="brush: jscript;">
&lt;script id=&quot;clientTemplate&quot; type=&quot;text/html&quot;&gt;
    &lt;p&gt;&lt;li&gt;${ first + &quot; &quot; + last }&lt;/li&gt;&lt;/p&gt;
&lt;/script&gt;
</pre>
<p>Which gives me the following result:</p>
<p><a href="http://blog.reybango.com/wp-content/uploads/2010/07/inline.png"><img src="http://blog.reybango.com/wp-content/uploads/2010/07/inline.png" alt="" title="inline" width="158" height="178" class="alignleft size-full wp-image-1067" /></a></p>
<p>Notice that I&#8217;m using the standard JavaScript &#8220;+&#8221; operator to concatenate the two data attributes together to form my final output. JavaScript developers should immediately be able to understand the code here and see how flexible this option is.</p>
<h2>Code Blocks</h2>
<p>Now, while inline expressions are certainly powerful, the ability to affect the data via code blocks is even more important because it allows you to specify conditional statements that can be used to determine what type of and when data will be represented. Let&#8217;s say that based on the age of a client, I want to show some text next to their name. I&#8217;ll use the following code block:</p>
<pre class="brush: jscript;">
{{if (age &gt; 30)}}veteran coder!{{else}}rising star!{{/if}}
</pre>
<p>This code block allows me to specify a conditional statement that allows me to create a nice descriptor based on the person&#8217;s age. The key is the &#8220;<em>{{if..else}}</em>&#8221; custom tag that&#8217;s been incorporated into the template plugin that allows you to specify conditional statements.</p>
<p>Here&#8217;s what the template would look like:</p>
<pre class="brush: jscript;">
&lt;script id=&quot;clientTemplate&quot; type=&quot;text/html&quot;&gt;
    &lt;p&gt;&lt;li&gt;${ first + &quot; &quot; + last + &quot; is a &quot; }{{if (age &gt; 30)}}veteran coder!{{else}}rising star!{{/if}}&lt;/li&gt; &lt;/p&gt;
&lt;/script&gt;
</pre>
<p>which generates the following results:</p>
<p><a href="http://blog.reybango.com/wp-content/uploads/2010/07/codeblock.png"><img src="http://blog.reybango.com/wp-content/uploads/2010/07/codeblock.png" alt="" title="codeblock" width="246" height="150" class="alignleft size-full wp-image-1074" /></a></p>
<p>And again, the cool thing is that the syntax for the expressions use standard JavaScript operators so I can do something like this as well:</p>
<pre class="brush: jscript;">
{{if (age &gt; 20 &amp;&amp; age &lt; 30 || age == 42)}}rising star!{{else}}veteran coder!{{/if}}
</pre>
<p>The thing to stress here is that using inline expressions and code blocks together can give you a tremendous amount of control over how you control you data. You have the flexibility you&#8217;d expect by using JavaScript but in a manner that is easily readable and maintainable.</p>
<p>Here&#8217;s the final code:</p>
<pre class="brush: jscript;">
&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
  &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
  &lt;meta name=&quot;robots&quot; content=&quot;noindex&quot; /&gt;
  &lt;title&gt;Template Test&lt;/title&gt;
  &lt;script src=&quot;http://code.jquery.com/jquery.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
  &lt;script src=&quot;jquery.tmpl.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
  &lt;script type=&quot;text/javascript&quot;&gt;
  $(document).ready(function() {

var clientData = [
     { first: &quot;Rey&quot;, last: &quot;Bango&quot;, age: 42, id: 1, phone: [ &quot;954-600-1234&quot;, &quot;954-355-5555&quot; ] },
     { first: &quot;Mark&quot;, last: &quot;Goldberg&quot;, age: 51, id: 2, phone: [&quot;954-600-1234&quot;, &quot;954-355-5555&quot;] },
     { first: &quot;Jen&quot;, last: &quot;Statford&quot;, age: &quot;25&quot;, id: 3, phone: [&quot;954-600-1234&quot;, &quot;954-355-5555&quot;] }
 ];

        $(&quot;#clientTemplate&quot;).tmpl(clientData).appendTo(&quot;div&quot;);

});
  &lt;/script&gt;

&lt;script id=&quot;clientTemplate&quot; type=&quot;text/html&quot;&gt;
    &lt;p&gt;&lt;li&gt;${ first + &quot; &quot; + last + &quot; is a &quot; }{{if (age &gt; 20 &amp;&amp; age &lt; 30 || age == 42)}}rising star!{{else}}veteran coder!{{/if}}&lt;/li&gt; &lt;/p&gt;
&lt;/script&gt;

&lt;/head&gt;

&lt;body&gt;

&lt;div&gt;&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>


<p>Related posts:<ol><li><a href='http://blog.reybango.com/2010/07/12/jquery-javascript-templates-tutorial-nesting-templates/' rel='bookmark' title='Permanent Link: jQuery JavaScript Templates Tutorial: Nesting Templates'>jQuery JavaScript Templates Tutorial: Nesting Templates</a> <small>In my last post, I presented an intro to how...</small></li>
<li><a href='http://blog.reybango.com/2010/07/09/not-using-jquery-javascript-templates-youre-really-missing-out/' rel='bookmark' title='Permanent Link: Not Using jQuery JavaScript Templates? You&#8217;re Really Missing Out.'>Not Using jQuery JavaScript Templates? You&#8217;re Really Missing Out.</a> <small>In preparation for my upcoming talk on jQuery Templates, I&#8217;ve...</small></li>
<li><a href='http://blog.reybango.com/2010/07/08/im-presenting-on-jquery-templates-at-thinkvitamins-jquery-online-conference/' rel='bookmark' title='Permanent Link: I&#8217;m Presenting on jQuery Templates at ThinkVitamin&#8217;s jQuery Online Conference'>I&#8217;m Presenting on jQuery Templates at ThinkVitamin&#8217;s jQuery Online Conference</a> <small>This coming Monday (7/12/2010), I&#8217;ll be one of the speakers...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.reybango.com/2010/07/14/jquery-javascript-templates-tutorial-inline-expressions-and-code-blocks/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>The Source Code for my Twitter Demo from the Think Vitamin jQuery Online Conference Templating Presentation</title>
		<link>http://blog.reybango.com/2010/07/12/the-source-code-for-my-twitter-demo-from-the-think-vitamin-jquery-online-conference-templating-presentation/</link>
		<comments>http://blog.reybango.com/2010/07/12/the-source-code-for-my-twitter-demo-from-the-think-vitamin-jquery-online-conference-templating-presentation/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 18:42:53 +0000</pubDate>
		<dc:creator>Rey Bango</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Conferences]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://blog.reybango.com/?p=1055</guid>
		<description><![CDATA[I just finished my presentation at Think Vitamin’s jQuery Online Conference and it was such a great experience. This is the first BIG virtual conference I&#8217;ve presented at and it ran smooth as silk. I really have to hand it to the Carsonified team; they have their act together. The big takeaways: Online conferences rock! [...]


Related posts:<ol><li><a href='http://blog.reybango.com/2010/07/08/im-presenting-on-jquery-templates-at-thinkvitamins-jquery-online-conference/' rel='bookmark' title='Permanent Link: I&#8217;m Presenting on jQuery Templates at ThinkVitamin&#8217;s jQuery Online Conference'>I&#8217;m Presenting on jQuery Templates at ThinkVitamin&#8217;s jQuery Online Conference</a> <small>This coming Monday (7/12/2010), I&#8217;ll be one of the speakers...</small></li>
<li><a href='http://blog.reybango.com/2010/05/11/video-interviews-part-2-nicholas-zakas-principal-front-end-engineer-at-yahoo-on-jquery-performance-and-menno-van-slooten-on-his-automated-ui-testing-framework-for-jquery/' rel='bookmark' title='Permanent Link: Video Interviews Part 2 &#8211; Nicholas Zakas, Principal Front-end Engineer at Yahoo! on jQuery Performance and Menno van Slooten on his Automated UI Testing Framework for jQuery'>Video Interviews Part 2 &#8211; Nicholas Zakas, Principal Front-end Engineer at Yahoo! on jQuery Performance and Menno van Slooten on his Automated UI Testing Framework for jQuery</a> <small>I got some more videos edited and uploaded for you...</small></li>
<li><a href='http://blog.reybango.com/2010/06/22/jquery-fundamentals-training-material-available-as-open-source/' rel='bookmark' title='Permanent Link: jQuery Fundamentals Training Material Available as Open Source'>jQuery Fundamentals Training Material Available as Open Source</a> <small>In an incredibly generous move, jQuery star Rebecca Murphey has...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I just finished my presentation at <a href="http://carsonified.com/online-conferences/jquery/">Think Vitamin’s jQuery Online Conference</a> and it was such a great experience. This is the first BIG virtual conference I&#8217;ve presented at and it ran smooth as silk. I really have to hand it to the Carsonified team; they have their act together. <img src='http://blog.reybango.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The big takeaways:</p>
<ul>
<li>Online conferences rock! No travel == less expenses.</li>
<li>The technology is good enough to be able to do this and WebEx is awesome.</li>
<li>Carsonified&#8217;s got this down. While some tech problems are expected, they&#8217;ve really got the process working well.</li>
</ul>
<p>The only downside, from a speaker perspective, is that you really can&#8217;t see how your audience is reacting. That&#8217;s tough because sometimes, you&#8217;re able to adjust according to your audience&#8217;s feedback. If there&#8217;s dead silence, you know you need to bring them back. If they&#8217;re engaged, you know you&#8217;re on track. In a virtual conference, you can&#8217;t gauge that so it&#8217;s tough.</p>
<p>Lots of folks have asked for the code for the Twitter demo that I did. You can now download that below:</p>
<p><a href="http://reybango.com/twitter/twitter.zip">Download the Twitter Demo Source</a></p>
<p>I want to thank everyone for attending and for the kind words. I really appreciate it. I also want to thank <a href="http://carsonified.com/">Carsonified</a> for giving me the opportunity to speak at a great event. </p>


<p>Related posts:<ol><li><a href='http://blog.reybango.com/2010/07/08/im-presenting-on-jquery-templates-at-thinkvitamins-jquery-online-conference/' rel='bookmark' title='Permanent Link: I&#8217;m Presenting on jQuery Templates at ThinkVitamin&#8217;s jQuery Online Conference'>I&#8217;m Presenting on jQuery Templates at ThinkVitamin&#8217;s jQuery Online Conference</a> <small>This coming Monday (7/12/2010), I&#8217;ll be one of the speakers...</small></li>
<li><a href='http://blog.reybango.com/2010/05/11/video-interviews-part-2-nicholas-zakas-principal-front-end-engineer-at-yahoo-on-jquery-performance-and-menno-van-slooten-on-his-automated-ui-testing-framework-for-jquery/' rel='bookmark' title='Permanent Link: Video Interviews Part 2 &#8211; Nicholas Zakas, Principal Front-end Engineer at Yahoo! on jQuery Performance and Menno van Slooten on his Automated UI Testing Framework for jQuery'>Video Interviews Part 2 &#8211; Nicholas Zakas, Principal Front-end Engineer at Yahoo! on jQuery Performance and Menno van Slooten on his Automated UI Testing Framework for jQuery</a> <small>I got some more videos edited and uploaded for you...</small></li>
<li><a href='http://blog.reybango.com/2010/06/22/jquery-fundamentals-training-material-available-as-open-source/' rel='bookmark' title='Permanent Link: jQuery Fundamentals Training Material Available as Open Source'>jQuery Fundamentals Training Material Available as Open Source</a> <small>In an incredibly generous move, jQuery star Rebecca Murphey has...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.reybango.com/2010/07/12/the-source-code-for-my-twitter-demo-from-the-think-vitamin-jquery-online-conference-templating-presentation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery JavaScript Templates Tutorial: Nesting Templates</title>
		<link>http://blog.reybango.com/2010/07/12/jquery-javascript-templates-tutorial-nesting-templates/</link>
		<comments>http://blog.reybango.com/2010/07/12/jquery-javascript-templates-tutorial-nesting-templates/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 16:00:15 +0000</pubDate>
		<dc:creator>Rey Bango</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://blog.reybango.com/?p=1026</guid>
		<description><![CDATA[In my last post, I presented an intro to how to create a template using the new jQuery Template plugin being developed by the Microsoft Ajax Core team. In this tutorial, I&#8217;ll show you how to nest templates to have great control over your layout. The nesting of a template within another template is a [...]


Related posts:<ol><li><a href='http://blog.reybango.com/2010/07/09/not-using-jquery-javascript-templates-youre-really-missing-out/' rel='bookmark' title='Permanent Link: Not Using jQuery JavaScript Templates? You&#8217;re Really Missing Out.'>Not Using jQuery JavaScript Templates? You&#8217;re Really Missing Out.</a> <small>In preparation for my upcoming talk on jQuery Templates, I&#8217;ve...</small></li>
<li><a href='http://blog.reybango.com/2010/07/08/im-presenting-on-jquery-templates-at-thinkvitamins-jquery-online-conference/' rel='bookmark' title='Permanent Link: I&#8217;m Presenting on jQuery Templates at ThinkVitamin&#8217;s jQuery Online Conference'>I&#8217;m Presenting on jQuery Templates at ThinkVitamin&#8217;s jQuery Online Conference</a> <small>This coming Monday (7/12/2010), I&#8217;ll be one of the speakers...</small></li>
<li><a href='http://blog.reybango.com/2010/07/06/generic-activity-indicator-for-ajax-requests/' rel='bookmark' title='Permanent Link: Generic Activity Indicator for Ajax Requests'>Generic Activity Indicator for Ajax Requests</a> <small>Over the weekend I was fiddling was some code to...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.reybango.com/2010/07/09/not-using-jquery-javascript-templates-youre-really-missing-out/">In my last post</a>, I presented an intro to how to create a template using the new <a href="http://github.com/nje/jquery-tmpl">jQuery Template plugin</a> being developed by the Microsoft Ajax Core team. In this tutorial, I&#8217;ll show you how to nest templates to have great control over your layout.</p>
<p>The nesting of a template within another template is a pretty valuable feature as it lets you create a modular structure for your layout. Instead of having to create one enormous template to cover every scenario, you can break the layout apart into individual templates and piece them together. Let&#8217;s start by defining some data:</p>
<pre class="brush: jscript;">
       var clientData = [
	        { name: &quot;Rey Bango&quot;, age: 42, id: 1, phone: [ &quot;954-600-1234&quot;, &quot;954-355-5555&quot; ] },
	        { name: &quot;Mark Goldberg&quot;, age: 51, id: 2, phone: [&quot;954-600-1234&quot;, &quot;954-355-5555&quot;] },
	        { name: &quot;Jen Statford&quot;, age: &quot;25&quot;, id: 3, phone: [&quot;954-600-1234&quot;, &quot;954-355-5555&quot;] }
        ];
</pre>
<p>What I&#8217;d like to do is to render the basic information like the name and age in one template and then render the phone numbers for each client in a different template.</p>
<p>Like I showed in my previous post, we first create a template for our layout:</p>
<pre class="brush: jscript;">
&lt;script id=&quot;clientTemplate&quot; type=&quot;text/html&quot;&gt;
	&lt;p&gt;&lt;a href=&quot;clients/${id}&quot;&gt;${name} - Age: ${age}&lt;/a&gt;&lt;/p&gt;
&lt;/script&gt;
</pre>
<p>This will display the name and age as a hyperlink included within paragraph tags. Next, we create a new template that will be used to render the phone numbers for each client&#8221;</p>
<pre class="brush: jscript;">
&lt;script id=&quot;phoneTemplate&quot; type=&quot;text/html&quot;&gt;
	&lt;ul&gt;{{each phone}}&lt;li&gt;${$value}&lt;/li&gt;{{/each}}&lt;/ul&gt;
&lt;/script&gt;
</pre>
<p>Lastly, we&#8217;re going to include the call to &#8220;<em>phoneTemplate</em>&#8221; in our main template using the <em>&#8220;tmpl&#8221;</em> tag. This tag is used by the plugin to identify templates and parse them accordingly. Here&#8217;s what the call would look like:</p>
<pre class="brush: jscript;">
{{tmpl($data) &quot;#phoneTemplate&quot;}}
</pre>
<p>and we&#8217;re going to include it into the main template:</p>
<pre class="brush: jscript;">
&lt;script id=&quot;clientTemplate&quot; type=&quot;text/html&quot;&gt;
	&lt;p&gt;&lt;a href=&quot;clients/${id}&quot;&gt;${name} - Age: ${age}&lt;/a&gt;&lt;/p&gt;
	{{tmpl($data) &quot;#phoneTemplate&quot;}}
&lt;/script&gt;
</pre>
<p>This will generate the following results:</p>
<p><a href="http://blog.reybango.com/wp-content/uploads/2010/07/nested.png"><img src="http://blog.reybango.com/wp-content/uploads/2010/07/nested.png" alt="" title="nested" width="235" height="342" class="alignleft size-full wp-image-1035" /></a></p>
<p>There are a couple of key things to understand here. First, let&#8217;s look at the following:</p>
<pre class="brush: jscript;">
{{tmpl($data) &quot;#phoneTemplate&quot;}}
</pre>
<p>The variable &#8220;<em>$data</em>&#8221; contains the data for the current record being parsed. We&#8217;re passing it to the nested template so that we can work with that record. Let&#8217;s move onto the nested template:</p>
<pre class="brush: jscript;">
&lt;script id=&quot;phoneTemplate&quot; type=&quot;text/html&quot;&gt;
	&lt;ul&gt;{{each phone}}&lt;li&gt;${$value}&lt;/li&gt;{{/each}}&lt;/ul&gt;
&lt;/script&gt;
</pre>
<p>Now that the current record has been passed to it, we can access the attribute name, in this case &#8220;phone&#8221;, and loop through each phone record using the &#8216;<em>{{each}}</em>&#8216; plugin template tag. Think of it as similar to jQuery&#8217;s $.each() method or a JavaScript &#8220;for&#8221; loop. The code will loop through each phone record creating a new list item for each one and then return to the main template to get the next main record.</p>
<p>Here&#8217;s the whole code for you to work with:</p>
<pre class="brush: xml;">
&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
  &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
  &lt;meta name=&quot;robots&quot; content=&quot;noindex&quot; /&gt;
  &lt;title&gt;Template Test&lt;/title&gt;
  &lt;script src=&quot;http://code.jquery.com/jquery.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
  &lt;script src=&quot;jquery.tmpl.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
  &lt;script type=&quot;text/javascript&quot;&gt;
  $(document).ready(function() {

        var clientData = [
	        { name: &quot;Rey Bango&quot;, age: 42, id: 1, phone: [ &quot;954-600-1234&quot;, &quot;954-355-5555&quot; ] },
	        { name: &quot;Mark Goldberg&quot;, age: 51, id: 2, phone: [&quot;617-777-1234&quot;, &quot;617-222-3333&quot;] },
	        { name: &quot;Jen Statford&quot;, age: &quot;25&quot;, id: 3, phone: [&quot;608-555-5647&quot;, &quot;608-645-8855&quot;] }
        ];

        $(&quot;#clientTemplate&quot;).tmpl(clientData).appendTo(&quot;div&quot;);

});
  &lt;/script&gt;

&lt;script id=&quot;clientTemplate&quot; type=&quot;text/html&quot;&gt;
	&lt;p&gt;&lt;a href=&quot;clients/${id}&quot;&gt;${name} - Age: ${age}&lt;/a&gt;&lt;/p&gt;
	{{tmpl($data) &quot;#phoneTemplate&quot;}}
&lt;/script&gt;

&lt;script id=&quot;phoneTemplate&quot; type=&quot;text/html&quot;&gt;
	&lt;ul&gt;{{each phone}}&lt;li&gt;${$value}&lt;/li&gt;{{/each}}&lt;/ul&gt;
&lt;/script&gt;

&lt;/head&gt; 

&lt;body&gt; 

&lt;div&gt;&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>


<p>Related posts:<ol><li><a href='http://blog.reybango.com/2010/07/09/not-using-jquery-javascript-templates-youre-really-missing-out/' rel='bookmark' title='Permanent Link: Not Using jQuery JavaScript Templates? You&#8217;re Really Missing Out.'>Not Using jQuery JavaScript Templates? You&#8217;re Really Missing Out.</a> <small>In preparation for my upcoming talk on jQuery Templates, I&#8217;ve...</small></li>
<li><a href='http://blog.reybango.com/2010/07/08/im-presenting-on-jquery-templates-at-thinkvitamins-jquery-online-conference/' rel='bookmark' title='Permanent Link: I&#8217;m Presenting on jQuery Templates at ThinkVitamin&#8217;s jQuery Online Conference'>I&#8217;m Presenting on jQuery Templates at ThinkVitamin&#8217;s jQuery Online Conference</a> <small>This coming Monday (7/12/2010), I&#8217;ll be one of the speakers...</small></li>
<li><a href='http://blog.reybango.com/2010/07/06/generic-activity-indicator-for-ajax-requests/' rel='bookmark' title='Permanent Link: Generic Activity Indicator for Ajax Requests'>Generic Activity Indicator for Ajax Requests</a> <small>Over the weekend I was fiddling was some code to...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.reybango.com/2010/07/12/jquery-javascript-templates-tutorial-nesting-templates/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Not Using jQuery JavaScript Templates? You&#8217;re Really Missing Out.</title>
		<link>http://blog.reybango.com/2010/07/09/not-using-jquery-javascript-templates-youre-really-missing-out/</link>
		<comments>http://blog.reybango.com/2010/07/09/not-using-jquery-javascript-templates-youre-really-missing-out/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 15:01:25 +0000</pubDate>
		<dc:creator>Rey Bango</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://blog.reybango.com/?p=1001</guid>
		<description><![CDATA[In preparation for my upcoming talk on jQuery Templates, I&#8217;ve been been deep diving into the jQuery Template plugin created by Microsoft.. Many of you are probably familiar with server-side template engines like Smarty or Cheetah but only recently have client-side template engines taken off. Considering how complex our web apps are becoming, it makes [...]


Related posts:<ol><li><a href='http://blog.reybango.com/2010/07/08/im-presenting-on-jquery-templates-at-thinkvitamins-jquery-online-conference/' rel='bookmark' title='Permanent Link: I&#8217;m Presenting on jQuery Templates at ThinkVitamin&#8217;s jQuery Online Conference'>I&#8217;m Presenting on jQuery Templates at ThinkVitamin&#8217;s jQuery Online Conference</a> <small>This coming Monday (7/12/2010), I&#8217;ll be one of the speakers...</small></li>
<li><a href='http://blog.reybango.com/2010/07/06/generic-activity-indicator-for-ajax-requests/' rel='bookmark' title='Permanent Link: Generic Activity Indicator for Ajax Requests'>Generic Activity Indicator for Ajax Requests</a> <small>Over the weekend I was fiddling was some code to...</small></li>
<li><a href='http://blog.reybango.com/2010/05/10/use-scriptsrc-net-to-copy-and-paste-the-script-tag-for-your-favorite-javascript-library/' rel='bookmark' title='Permanent Link: Use ScriptSrc.net to Copy and Paste the Script tag for Your Favorite JavaScript Library'>Use ScriptSrc.net to Copy and Paste the Script tag for Your Favorite JavaScript Library</a> <small>One of the things I hate about using CDNs is...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>In preparation for my <a href="http://carsonified.com/online-conferences/jquery/">upcoming talk on jQuery Templates</a>, I&#8217;ve been been deep diving into the <a href="http://github.com/nje/jquery-tmpl">jQuery Template plugin created by Microsoft.</a>. Many of you are probably familiar with server-side template engines like Smarty or Cheetah but only recently have client-side template engines taken off. Considering how complex our web apps are becoming, it makes total sense.</p>
<p>The cool thing about templates is that it lets you easily structure your content display without all the hassle of string concatenation. For example, say I had a data set containing an ID and a name and I wanted to display the name as a hyperlink.</p>
<p>I could do something like this:</p>
<pre class="brush: jscript;">
var clRec = &quot;&quot;;

for(var i=0; i&lt;client.name.length; i++) {
    clRec += &quot;&lt;li&gt;&lt;a href='clients/&quot;+client.id[i]+&quot;'&gt;&quot; + client.name[i] + &quot;&lt;/a&gt;&lt;/li&gt;&quot;;
}
</pre>
<p>but to me, this seems much more readable and maintainable:</p>
<pre class="brush: jscript;">
&lt;li&gt;&lt;a href=&quot;clients/${id}&quot;&gt;${name}&lt;/a&gt;&lt;/li&gt;
</pre>
<p>The second code snippet is a template I&#8217;ve created to render a hyperlinked name in a list and it&#8217;s very easy to do. First, include both jQuery and the jQuery Template plugin into your page:</p>
<pre class="brush: jscript;">
&lt;script src=&quot;http://code.jquery.com/jquery.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;jquery.tmpl.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
</pre>
<p>Next, define the data that you&#8217;d like to see rendered. This could be data derived from an XHR call or something you&#8217;ve predefined, like this:</p>
<pre class="brush: jscript;">
	var clientData = [
		{ name: &quot;Rey Bango&quot;, id: 1 },
		{ name: &quot;Mark Goldberg&quot;, id: 2 },
		{ name: &quot;Jen Statford&quot;, id: 3 }
	];
</pre>
<p>Now, define your template:</p>
<pre class="brush: jscript;">
&lt;script id=&quot;clientTemplate&quot; type=&quot;text/html&quot;&gt;
	&lt;li&gt;&lt;a href=&quot;clients/${id}&quot;&gt;${name}&lt;/a&gt;&lt;/li&gt;
&lt;/script&gt;
</pre>
<p>Yep, the &#8220;script&#8221; tags are necessary and used because they allow your template to be embedded within the body of the page. Notice that we&#8217;ve defined the placeholders as ${id} &#038; ${name}, the same names used in the identifiers in our data. The &#8220;${}&#8221; tells the template parser that the field needs to be replaced with the expected value.</p>
<p>Then call the jQuery Template plugin to render the data using your template: </p>
<pre class="brush: jscript;">
$(&quot;#clientTemplate&quot;).tmpl(clientData).appendTo( &quot;ul&quot; );
</pre>
<p>The plugin&#8217;s <em>.tmpl()</em> method accepts the data we&#8217;ve defined and handles the parsing of the template we&#8217;ve selected. Then we use jQuery&#8217;s <em>.appendTo()</em> method to append the results to an unordered list tag. This gives me the following results:</p>
<p><img src="http://blog.reybango.com/wp-content/uploads/2010/07/template.png" alt="" title="template" width="223" height="131" class="alignleft size-full wp-image-1011" /></p>
<p>That&#8217;s it! Told you it was simple. <img src='http://blog.reybango.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>I&#8217;ll go into more advanced details during my presentation but this should give you something to start with in the meantime. Here&#8217;s the full source for you to use:</p>
<pre class="brush: xml;">
&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
  &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
  &lt;meta name=&quot;robots&quot; content=&quot;noindex&quot; /&gt;
  &lt;title&gt;Template Test&lt;/title&gt;
  &lt;script src=&quot;http://code.jquery.com/jquery.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
  &lt;script src=&quot;jquery.tmpl.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
  &lt;script type=&quot;text/javascript&quot;&gt;
  $(document).ready(function() {

	var clientData = [
		{ name: &quot;Rey Bango&quot;, id: 1 },
		{ name: &quot;Mark Goldberg&quot;, id: 2 },
		{ name: &quot;Jen Statford&quot;, id: 3 }
	];

$(&quot;#clientTemplate&quot;).tmpl(clientData).appendTo( &quot;ul&quot; );

});
  &lt;/script&gt;

 &lt;script id=&quot;clientTemplate&quot; type=&quot;text/html&quot;&gt;
	&lt;li&gt;&lt;a href=&quot;clients/${id}&quot;&gt;${name}&lt;/a&gt;&lt;/li&gt;
&lt;/script&gt;

&lt;/head&gt; 

&lt;body&gt; 

&lt;ul&gt;&lt;/ul&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>


<p>Related posts:<ol><li><a href='http://blog.reybango.com/2010/07/08/im-presenting-on-jquery-templates-at-thinkvitamins-jquery-online-conference/' rel='bookmark' title='Permanent Link: I&#8217;m Presenting on jQuery Templates at ThinkVitamin&#8217;s jQuery Online Conference'>I&#8217;m Presenting on jQuery Templates at ThinkVitamin&#8217;s jQuery Online Conference</a> <small>This coming Monday (7/12/2010), I&#8217;ll be one of the speakers...</small></li>
<li><a href='http://blog.reybango.com/2010/07/06/generic-activity-indicator-for-ajax-requests/' rel='bookmark' title='Permanent Link: Generic Activity Indicator for Ajax Requests'>Generic Activity Indicator for Ajax Requests</a> <small>Over the weekend I was fiddling was some code to...</small></li>
<li><a href='http://blog.reybango.com/2010/05/10/use-scriptsrc-net-to-copy-and-paste-the-script-tag-for-your-favorite-javascript-library/' rel='bookmark' title='Permanent Link: Use ScriptSrc.net to Copy and Paste the Script tag for Your Favorite JavaScript Library'>Use ScriptSrc.net to Copy and Paste the Script tag for Your Favorite JavaScript Library</a> <small>One of the things I hate about using CDNs is...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.reybango.com/2010/07/09/not-using-jquery-javascript-templates-youre-really-missing-out/feed/</wfw:commentRss>
		<slash:comments>57</slash:comments>
		</item>
		<item>
		<title>I&#8217;m Presenting on jQuery Templates at ThinkVitamin&#8217;s jQuery Online Conference</title>
		<link>http://blog.reybango.com/2010/07/08/im-presenting-on-jquery-templates-at-thinkvitamins-jquery-online-conference/</link>
		<comments>http://blog.reybango.com/2010/07/08/im-presenting-on-jquery-templates-at-thinkvitamins-jquery-online-conference/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 18:11:22 +0000</pubDate>
		<dc:creator>Rey Bango</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Conferences]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://blog.reybango.com/?p=978</guid>
		<description><![CDATA[This coming Monday (7/12/2010), I&#8217;ll be one of the speakers at Think Vitamin&#8217;s jQuery Online Conference. I&#8217;ll be speaking about using the Microsoft jQuery Template plugin to produce easily maintainable dynamic pages via pre-built JavaScript templates. This is a great topic and it looks like the event is generating a lot of registrations. Very cool. [...]


Related posts:<ol><li><a href='http://blog.reybango.com/2010/06/10/txjs-javascript-conference-wrapup/' rel='bookmark' title='Permanent Link: TXJS JavaScript Conference Wrapup'>TXJS JavaScript Conference Wrapup</a> <small>Last Saturday I attended TXJS, my second conference of the...</small></li>
<li><a href='http://blog.reybango.com/2010/05/11/video-interviews-part-2-nicholas-zakas-principal-front-end-engineer-at-yahoo-on-jquery-performance-and-menno-van-slooten-on-his-automated-ui-testing-framework-for-jquery/' rel='bookmark' title='Permanent Link: Video Interviews Part 2 &#8211; Nicholas Zakas, Principal Front-end Engineer at Yahoo! on jQuery Performance and Menno van Slooten on his Automated UI Testing Framework for jQuery'>Video Interviews Part 2 &#8211; Nicholas Zakas, Principal Front-end Engineer at Yahoo! on jQuery Performance and Menno van Slooten on his Automated UI Testing Framework for jQuery</a> <small>I got some more videos edited and uploaded for you...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://carsonified.com/online-conferences/jquery/"><img src="http://blog.reybango.com/wp-content/uploads/2010/07/tv-jquery-con.png" alt="" title="tv-jquery-con" width="506" height="93" class="alignleft size-full wp-image-979" /></a></p>
<p>This coming Monday (7/12/2010), I&#8217;ll be one of the speakers at <a href="http://carsonified.com/online-conferences/jquery/">Think Vitamin&#8217;s jQuery Online Conference</a>. I&#8217;ll be speaking about using the <a href="http://github.com/nje/jquery-tmpl">Microsoft jQuery Template plugin</a> to produce easily maintainable dynamic pages via pre-built JavaScript templates. This is a great topic and it looks like the event is generating a lot of registrations. Very cool. </p>
<p>I&#8217;ll be joined by three other awesome speakers including John Resig, Karl Swedberg and Ben Alman. Here&#8217;s the breakdown of the sessions:</p>
<h3>Topics and schedule</h3>
<p></p>
<ul>
<li><strong>Beyond String Concatenation. Using jQuery Templating to Cleanly Display Your Data<br />
<em>Rey Bango</em></strong><br />
In this presentation, Rey will show you a new way to produce easily maintainable dynamic pages via pre-built JavaScript templates and the Microsoft jQuery templating plugin.</li>
<li><strong>Testing Your Mobile Web Apps<br />
<em>John Resig</em></strong><br />
This talk will be a comprehensive look at what you need to know to properly test your web applications on mobile devices, based upon the work that&#8217;s been done by the jQuery team. We&#8217;ll look at the different mobile phones that exist, what browsers they run, and what you can do to support them. Additionally we&#8217;ll examine some of the testing tools that can be used to make the whole process much easier.</li>
<li><strong>Taking jQuery Effects to the Next Level<br />
<em>Karl Swedberg</em></strong><br />
One of the first things web developers learn to do with jQuery is to show and hide elements on a page and then add some flair by sliding those elements up and down or fading them in and out. Too often, though, we stop there, missing out on the incredible range and flexibility of jQuery&#8217;s core effects. In this talk, we&#8217;ll investigate both standard and custom animations and how they can be used to create useful and fun effects. We&#8217;ll also build a couple effects plugins, explore parts of the effects API that are often overlooked, and learn how to avoid common problems when attaching these effects to certain events.</li>
<li><strong>jQuery Pluginization<br />
<em>Ben Alman</em></strong><br />
In this live-coding session, Ben explains how, with just a little thought and effort around generalization, parameterization and organization, you can convert your &#8220;just get the job done&#8221; jQuery code into a legitimate, reusable, modular jQuery plugin.</li>
</ul>
<p>This really is a great lineup and I&#8217;m looking forward to being a part of this great event. It&#8217;s been a very long time since I&#8217;ve done a presentation so this will be a good warm up for some other conferences I plan on speaking at later this year.</p>
<p>Be sure to use the following discount code for a 15% discount on registration: <strong>jquery15</strong> </p>


<p>Related posts:<ol><li><a href='http://blog.reybango.com/2010/06/10/txjs-javascript-conference-wrapup/' rel='bookmark' title='Permanent Link: TXJS JavaScript Conference Wrapup'>TXJS JavaScript Conference Wrapup</a> <small>Last Saturday I attended TXJS, my second conference of the...</small></li>
<li><a href='http://blog.reybango.com/2010/05/11/video-interviews-part-2-nicholas-zakas-principal-front-end-engineer-at-yahoo-on-jquery-performance-and-menno-van-slooten-on-his-automated-ui-testing-framework-for-jquery/' rel='bookmark' title='Permanent Link: Video Interviews Part 2 &#8211; Nicholas Zakas, Principal Front-end Engineer at Yahoo! on jQuery Performance and Menno van Slooten on his Automated UI Testing Framework for jQuery'>Video Interviews Part 2 &#8211; Nicholas Zakas, Principal Front-end Engineer at Yahoo! on jQuery Performance and Menno van Slooten on his Automated UI Testing Framework for jQuery</a> <small>I got some more videos edited and uploaded for you...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.reybango.com/2010/07/08/im-presenting-on-jquery-templates-at-thinkvitamins-jquery-online-conference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generic Activity Indicator for Ajax Requests</title>
		<link>http://blog.reybango.com/2010/07/06/generic-activity-indicator-for-ajax-requests/</link>
		<comments>http://blog.reybango.com/2010/07/06/generic-activity-indicator-for-ajax-requests/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 13:00:33 +0000</pubDate>
		<dc:creator>Rey Bango</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://blog.reybango.com/?p=947</guid>
		<description><![CDATA[Over the weekend I was fiddling was some code to see how to make a generic activity indicator for Ajax requests. I&#8217;m sure most of you have seen these but if not, here&#8217;s one similar to what Facebook uses: While it&#8217;s may not look like much, that animated .gif is pretty important because it tells [...]


Related posts:<ol><li><a href='http://blog.reybango.com/2010/04/08/alternative-client-side-storage-using-sessvars-js/' rel='bookmark' title='Permanent Link: Alternative Client-Side Storage using Sessvars.js'>Alternative Client-Side Storage using Sessvars.js</a> <small>I was recently on a project where I needed a...</small></li>
<li><a href='http://blog.reybango.com/2010/04/14/my-solution-to-google-chrome-safari-double-firing-the-mouseup-event-when-selecting-text/' rel='bookmark' title='Permanent Link: My Solution to Google Chrome &#038; Safari Double Firing the mouseup Event when Selecting Text'>My Solution to Google Chrome &#038; Safari Double Firing the mouseup Event when Selecting Text</a> <small>I needed to write a quick bit of code today...</small></li>
<li><a href='http://blog.reybango.com/2010/04/15/update-to-the-google-safari-double-firing-mouseup-issue/' rel='bookmark' title='Permanent Link: Update to the Google &#038; Safari Double Firing mouseup Issue'>Update to the Google &#038; Safari Double Firing mouseup Issue</a> <small>Yesterday, I wrote about an issue I was having with...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Over the weekend I was fiddling was some code to see how to make a generic activity indicator for Ajax requests. I&#8217;m sure most of you have seen these but if not, here&#8217;s one similar to what Facebook uses:</p>
<p><a href="http://blog.reybango.com/wp-content/uploads/2010/07/facebook.gif"><img src="http://blog.reybango.com/wp-content/uploads/2010/07/facebook.gif" alt="" title="facebook" width="16" height="11" class="alignright size-full wp-image-948" /></a></p>
<p>While it&#8217;s may not look like much, that animated .gif is pretty important because it tells a user that something is happening and that results will appear shortly. The last thing you want is for a user to think the page has locked up or broken and using this simple method advises them that their request is being processed.</p>
<h2>Targeted Indicators</h2>
<p>In my case, I was looking for a way to set an indicator within the specific DOM element that would be affected by the XHR call. So if my XHR call was to set the contents of a specific DIV, I wanted the indicator to render within that specific DIV only (similar to what Facebook does). </p>
<p>First, I created three DIVs and 3 anchor tags:</p>
<pre class="brush: xml;">
&lt;a href=&quot;#&quot;&gt;Box 1&lt;/a&gt;|&lt;a href=&quot;#&quot;&gt;Box 2&lt;/a&gt;|&lt;a href=&quot;#&quot;&gt;Box 3&lt;/a&gt; 

&lt;br /&gt;&lt;br /&gt;

&lt;div id=&quot;box1&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div id=&quot;box2&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div id=&quot;box3&quot;&gt;&amp;nbsp;&lt;/div&gt;
</pre>
<p>and I set the DIVs to a specific width and floated them left:</p>
<pre class="brush: css;">
#box1, #box2, #box3 { background-color:#E5EECC; border:1px solid #D4D4D4; width: 200px; float:left; };
</pre>
<p>Next, I created a new method called <em>fillBox()</em> that would take the target element&#8217;s ID and use that to dynamically create a new IMG tag and insert the activity indicator. What I decided to do was leverage jQuery&#8217;s global Ajax events to create the generic handlers for this. Using <em>ajaxStart()</em>, which fires off when an Ajax request is initiated, I dynamically create the tag for my activity indicator and inset it using the <em>prepend()</em> method:</p>
<pre class="brush: jscript;">
		$(ele).ajaxStart( function() {

			$(this).prepend( &quot;&lt;img id='throbber' src='facebook.gif' /&gt;&quot; );

		})
</pre>
<p>Then using the Ajax global event handler ajaxStop(), I would easily delete the indicator once the Ajax request was done by using the <em>remove()</em> method to delete the IMG tag from the DOM:</p>
<pre class="brush: jscript;">
ajaxStop( function() {

	$(&quot;#throbber&quot;).remove();

});
</pre>
<p>Lastly, using some event delegation, I created an event handler for the clicks on the anchor tags:</p>
<pre class="brush: jscript;">
$( &quot;a&quot; ).click( function(e) {

	var el = '';
	switch(e.target.text) {
		case &quot;Box 1&quot;:
			el = '#box1';
			break;
		case &quot;Box 2&quot;:
			el = '#box2';
			break;
		case &quot;Box 3&quot;:
			el = '#box3';
			break;
	} 

	fillBox( el );

});
</pre>
<p>The handler simply looked for the anchor tag&#8217;s text and based on that filled a local var with the ID that would be targeted for the indicator. It then passed that ID to the <em>fillBox()</em> method.</p>
<h2>A Little Roadblock</h2>
<p>I thought I was done and the code look pretty straightforward. When I ran this, though, I experienced some odd behavior:</p>
<p><a href="http://blog.reybango.com/wp-content/uploads/2010/07/throbber.png"><img src="http://blog.reybango.com/wp-content/uploads/2010/07/throbber.png" alt="" title="throbber" width="619" height="414" class="alignright size-full wp-image-959" /></a></p>
<p>When I would click on the &#8220;Box 1&#8243; link, the indicator would correctly appear in the first DIV followed by the data populating the box. When I would next click on the &#8220;Box 3&#8243; link, though, both the first box <strong>AND</strong> the third box would have the indicators displayed! Not good. </p>
<p>I looked into it and got feedback from Adam Sontag who provided the answer I needed. I had incorrectly assumed that <em>ajaxStop()</em> would unbind the jQuery global Ajax events from the attached element. Unfortunately it doesn&#8217;t so by using the <em>unbind()</em> method, I was able to resolve the issue.</p>
<pre class="brush: jscript;">
		$.ajax({
		  url: 'test.php',
		  cache: false,
		  success: function(data) {

			$(ele).html( data ).unbind( 'ajaxStart' ).unbind( 'ajaxStop' );

		  }
		});

	};
</pre>
<h2>The Solution Gets Easier</h2>
<p>Then I got more feedback from <a href="http://www.karlswedberg.com/">Karl Swedberg</a> which really streamlined the whole thing. He recommended forgoing the Ajax global events altogether and simply inserting the indicator via my fillBox() method directly and since I was replacing the contents of the DIVs with the <em>html()</em> method, there was no need to use <em>remove()</em> since the IMG tag was already being removed.</p>
<pre class="brush: jscript;">
var fillBox = function( ele ) {

	$(ele).prepend( &quot;&lt;img id='throbber' src='facebook.gif' /&gt;&quot; );

	$.ajax({
		url: 'test.php',
		cache: false,
		success: function(data) {

			$(ele).html( data );

		}
	});

};
</pre>
<p>So while I initially was looking to use jQuery&#8217;s built-in global Ajax event handlers for making this generic, I&#8217;m finding Karl&#8217;s solution much cleaner. It requires less event handlers and method calls to do the same task. Love it!</p>
<p>Here&#8217;s the end result and <a href="http://reybango.com/ajax/">you can see the demo here</a>:</p>
<pre class="brush: xml;">
&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
  &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
  &lt;meta name=&quot;robots&quot; content=&quot;noindex&quot; /&gt;
  &lt;title&gt;Throbber Test&lt;/title&gt;
  &lt;style&gt;
	#box1, #box2, #box3 { background-color:#E5EECC; border:1px solid #D4D4D4; width: 200px; float:left; };
  &lt;/style&gt;
  &lt;script src=&quot;http://code.jquery.com/jquery.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
  &lt;script type=&quot;text/javascript&quot;&gt;

	fillBox = function( ele ) {

		$(ele).prepend( &quot;&lt;img id='throbber' src='facebook.gif' /&gt;&quot; );

		$.ajax({
			url: 'test.php',
			cache: false,
			success: function(data) {

				$(ele).html( data );

			}
		});

	};

	$(document).ready( function() {

		$( &quot;a&quot; ).click( function(e) {

			var el = '';
			switch(e.target.text) {
				case &quot;Box 1&quot;:
					el = '#box1';
					break;
				case &quot;Box 2&quot;:
					el = '#box2';
					break;
				case &quot;Box 3&quot;:
					el = '#box3';
					break;
			} 

			fillBox( el );

		});

	});
  &lt;/script&gt;

&lt;/head&gt; 

&lt;body&gt; 

&lt;a href=&quot;#&quot;&gt;Box 1&lt;/a&gt;|&lt;a href=&quot;#&quot;&gt;Box 2&lt;/a&gt;|&lt;a href=&quot;#&quot;&gt;Box 3&lt;/a&gt; 

&lt;br /&gt;&lt;br /&gt;

&lt;div id=&quot;box1&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div id=&quot;box2&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div id=&quot;box3&quot;&gt;&amp;nbsp;&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>


<p>Related posts:<ol><li><a href='http://blog.reybango.com/2010/04/08/alternative-client-side-storage-using-sessvars-js/' rel='bookmark' title='Permanent Link: Alternative Client-Side Storage using Sessvars.js'>Alternative Client-Side Storage using Sessvars.js</a> <small>I was recently on a project where I needed a...</small></li>
<li><a href='http://blog.reybango.com/2010/04/14/my-solution-to-google-chrome-safari-double-firing-the-mouseup-event-when-selecting-text/' rel='bookmark' title='Permanent Link: My Solution to Google Chrome &#038; Safari Double Firing the mouseup Event when Selecting Text'>My Solution to Google Chrome &#038; Safari Double Firing the mouseup Event when Selecting Text</a> <small>I needed to write a quick bit of code today...</small></li>
<li><a href='http://blog.reybango.com/2010/04/15/update-to-the-google-safari-double-firing-mouseup-issue/' rel='bookmark' title='Permanent Link: Update to the Google &#038; Safari Double Firing mouseup Issue'>Update to the Google &#038; Safari Double Firing mouseup Issue</a> <small>Yesterday, I wrote about an issue I was having with...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.reybango.com/2010/07/06/generic-activity-indicator-for-ajax-requests/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Video Interview with the Yahoo UI JavaScript Library Team</title>
		<link>http://blog.reybango.com/2010/04/30/video-interview-with-the-yahoo-ui-javascript-library-team/</link>
		<comments>http://blog.reybango.com/2010/04/30/video-interview-with-the-yahoo-ui-javascript-library-team/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 18:56:42 +0000</pubDate>
		<dc:creator>Rey Bango</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Yahoo User Interface Library]]></category>

		<guid isPermaLink="false">http://blog.reybango.com/?p=735</guid>
		<description><![CDATA[Last Friday I got a chance to visit the Yahoo! campus and meet with the YUI team. I have to say I felt pretty special because these guys usually work remotely on Friday&#8217;s and they took the time to come into the office to chat with me. I really appreciated that and I&#8217;m glad that [...]


Related posts:<ol><li><a href='http://blog.reybango.com/2010/04/21/jsconf-2010-video-interviews-with-top-javascript-developers/' rel='bookmark' title='Permanent Link: JSConf 2010 &#8211; Video Interviews with Top JavaScript Developers'>JSConf 2010 &#8211; Video Interviews with Top JavaScript Developers</a> <small>While at JSConf 2010, I was able to interview some...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Last Friday I got a chance to visit the <a href="http://yahoo.com">Yahoo!</a> campus and meet with the <a href="http://developer.yahoo.com/yui/">YUI</a> team. I have to say I felt pretty special because these guys usually work remotely on Friday&#8217;s and they took the time to come into the office to chat with me. I really appreciated that and I&#8217;m glad that this video will help put a face to the name of these JavaScript ninjas. A very special thanks to <a href="http://twitter.com/miraglia">Eric Miraglia</a> and <a href="http://twitter.com/goonieiam">Gonzalo Cordero</a> for setting this up.</p>
<p><em><strong>** NOTE: If for any reason you can&#8217;t see the video via the embedded player, just click the link below it to jump over to Vimeo.</strong></em></p>
<p><object width="640" height="360"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=11359775&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=11359775&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="640" height="360"></embed></object>
<p><a href="http://vimeo.com/11359775">Interview with the YUI Team</a> from <a href="http://vimeo.com/user290683">Rey Bango</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>The YUI team spent some time with me to chat about the good stuff happening with YUI</p>


<p>Related posts:<ol><li><a href='http://blog.reybango.com/2010/04/21/jsconf-2010-video-interviews-with-top-javascript-developers/' rel='bookmark' title='Permanent Link: JSConf 2010 &#8211; Video Interviews with Top JavaScript Developers'>JSConf 2010 &#8211; Video Interviews with Top JavaScript Developers</a> <small>While at JSConf 2010, I was able to interview some...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.reybango.com/2010/04/30/video-interview-with-the-yahoo-ui-javascript-library-team/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Replacements for CFGRID, CFWINDOW, and CFTOOLTIP</title>
		<link>http://blog.reybango.com/2008/08/30/jquery-replacements-for-cfgrid-cfwindow-and-cftooltip/</link>
		<comments>http://blog.reybango.com/2008/08/30/jquery-replacements-for-cfgrid-cfwindow-and-cftooltip/#comments</comments>
		<pubDate>Sat, 30 Aug 2008 18:35:00 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.intoajax.com/index.cfm/2008/8/30/jQuery-Replacements-for-CFGRID-CFWINDOW-and-CFTOOLTIP</guid>
		<description><![CDATA[Sean Corfield blogged about some new jQuery-based Ajax replacement widgets created by Michael Sprague. Michael wrapped the functionality of FlexiGrid, jTip and jqModal (3 of the best jQuery plugins available) into easy to use ColdFusion tags that serve to replace CFGRID, CFWINDOW, and CFTOOLTIP. I checked them out and Michael did an excellent job! Thanks [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Sean Corfield blogged about <a href="http://corfield.org/blog/index.cfm/do/blog.entry/entry/Nice_jQuerybased_CF_AJAX_widgets">some new jQuery-based Ajax replacement widgets</a> created by Michael Sprague.</p>
<p>Michael wrapped the functionality of FlexiGrid, jTip and jqModal (3 of the best jQuery plugins available) into easy to use ColdFusion tags that serve to replace CFGRID, CFWINDOW, and CFTOOLTIP.</p>
<p>I checked them out and Michael did an excellent job!</p>
<p>Thanks for finding this Sean.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.reybango.com/2008/08/30/jquery-replacements-for-cfgrid-cfwindow-and-cftooltip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->