<?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>jonathanjulian.com &#187; extjs</title>
	<atom:link href="http://jonathanjulian.com/category/extjs/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanjulian.com</link>
	<description>Ruby, Rails, JavaScript, software development</description>
	<lastBuildDate>Sat, 27 Feb 2010 16:59:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>New Ext JS book in the works</title>
		<link>http://jonathanjulian.com/2010/01/new-ext-js-book-in-the-works/</link>
		<comments>http://jonathanjulian.com/2010/01/new-ext-js-book-in-the-works/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 01:08:08 +0000</pubDate>
		<dc:creator>jonathan</dc:creator>
				<category><![CDATA[extjs]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://jonathanjulian.com/?p=158</guid>
		<description><![CDATA[I&#8217;ve heard a rumor from a trusted source that the next version of Learning Ext JS is being written, and it may be titled Learning Ext JS 3.0. It will be updated to reflect working with version 3.x of the library, and have at least three new chapters added. If it is published in 2010, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve heard a rumor from a trusted source that the next version of <a href="http://learningextjs.com/">Learning Ext JS</a> is being written, and it may be titled <strong>Learning Ext JS 3.0</strong>. It will be updated to reflect working with version 3.x of the <a href="http://extjs.com/">library</a>, and have at least <strong><em>three</em></strong> new chapters added. If it is published in 2010, this could be a great year for Ext JS books, with <a href="http://extjsinaction.com/">Ext JS in Action</a> scheduled to go to print in June.</p>
<p><strong>UPDATE February 10</strong>: Confirmed! I&#8217;ve been asked to be a Technical Reviewer, and I&#8217;ve already received 3 chapters to review! This is going to be a great refresh for what I think is the best entry-level Ext JS book.</p>
]]></content:encoded>
			<wfw:commentRss>http://jonathanjulian.com/2010/01/new-ext-js-book-in-the-works/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Five Tips to Improve Your Ext JS Application</title>
		<link>http://jonathanjulian.com/2010/01/five-tips-to-improve-your-ext-js-application/</link>
		<comments>http://jonathanjulian.com/2010/01/five-tips-to-improve-your-ext-js-application/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 00:43:47 +0000</pubDate>
		<dc:creator>jonathan</dc:creator>
				<category><![CDATA[extjs]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://jonathanjulian.com/?p=138</guid>
		<description><![CDATA[Three Pillar Global sponsored their first Ext JS meetup earlier this week, and they were kind enough to invite me to give one of the presentations. Thanks to Patrick Sheridan (@sheridap) of Three Pillar for pulling it together, and providing the delicious pizza! My presentation was inserted between Shea Frederick and Jay Garcia&#8217;s. Pretty good [...]]]></description>
			<content:encoded><![CDATA[<h3 style="font-size: 1.17em;"><span style="font-weight: normal; font-size: 13px;"><a href="http://www.threepillarsoftware.com/">Three Pillar Global</a> sponsored their first <a href="http://www.meetup.com/baltimore-dc-javascript-users/calendar/12219819/">Ext JS meetup</a> earlier this week, and they were kind enough to invite me to give one of the presentations. Thanks to Patrick Sheridan (<a href="http://twitter.com/sheridap">@sheridap</a>) of Three Pillar for pulling it together, and providing the delicious pizza! My presentation was inserted between <a href="http://www.vinylfox.com/">Shea Frederick</a> and <a href="http://tdg-i.com/">Jay Garcia</a>&#8217;s. Pretty good company, I&#8217;d say.</span></h3>
<p>Pat started off discussing &#8220;<a href="http://www.slideshare.net/threepillar/three-pillar-global-design-for-use">Design for Use</a>&#8220;. Then Shea told us all about &#8220;<a href="http://www.slideshare.net/VinylFox/practical-ext-js-debugging">Practical Ext JS Debugging</a>&#8220;.</p>
<p>My talk is titled &#8220;Five Tips to Improve Your Ext JS Application&#8221;. I briefly touch on five distinct strategies to use to make your code more maintainable and reusable. Below the slides and video is a short discussion of each topic:</p>
<div id="__ss_2958396" style="width: 425px; text-align: left;"><a style="font: 14px Helvetica,Arial,Sans-serif; display: block; margin: 12px 0 3px 0; text-decoration: underline;" title="Five Tips To Improve Your Ext Js Application" href="http://www.slideshare.net/jonathanjulian/five-tips-to-improve-your-ext-js-application">Five Tips To Improve Your Ext Js Application</a><object style="margin: 0px;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=fivetipstoimproveyourextjsapplication-100120131238-phpapp01&amp;rel=0&amp;stripped_title=five-tips-to-improve-your-ext-js-application" /><param name="allowfullscreen" value="true" /><embed style="margin: 0px;" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=fivetipstoimproveyourextjsapplication-100120131238-phpapp01&amp;rel=0&amp;stripped_title=five-tips-to-improve-your-ext-js-application" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<div style="font-size: 11px; font-family: tahoma,arial; height: 26px; padding-top: 2px;">View more <a style="text-decoration: underline;" href="http://www.slideshare.net/">documents</a> from <a style="text-decoration: underline;" href="http://www.slideshare.net/jonathanjulian">Jonathan Julian</a>.</div>
</div>
<p><object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=9768559&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=9768559&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object>
<p><a href="http://vimeo.com/9768559">Jonathan Julian at the Northern Virginia Ext JS meetup at Three Pillar Global on 1/19/10</a> from <a href="http://vimeo.com/user3205431">Jay Garcia</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<h3>Define your own components</h3>
<p>Explicitly define your own &#8220;classes&#8221; as you build your UI. This will allow your code to be more reusable, testable, and maintainable. It&#8217;s really easy to do, and along with namespacing your files and only defining one component per file, this approach will lead to amazingly clear directory structure.</p>
<h3>Use an event manager</h3>
<p>Sometimes also known as an &#8220;event broker&#8221;, this is a simple object used to centralize all events. The example in the presentation is the &#8220;simplest event manager you can build with Ext JS&#8221;. I like to use at least one in every project to simplify the coding when someone inevitably asks, &#8220;can you make it do X every time the user does Y?&#8221;</p>
<div id="attachment_146" class="wp-caption alignleft" style="width: 290px"><img class="size-medium wp-image-146" title="describing an event manager" src="http://jonathanjulian.com/wp-content/uploads/2010/01/five_tips-crop-280x300.jpg" alt="Here I am describing the MyApp.eventManager" width="280" height="300" /><p class="wp-caption-text">Fire an event on the MyApp.eventManager</p></div>
<h3>Override the framework properly</h3>
<p>Anytime you need to &#8220;hack&#8221; the framework, do your work in a special file (or dir): call it &#8220;overrides&#8221;. Then when you test your upgrade to the next version of Ext JS, all the integration points to inspect are in one place. I also included my idea of a standard directory layout. I think it works well with the idea of &#8220;Namespace Segmentation&#8221; as discussed in Chapter 16 of <a href="http://extjsinaction.com/">Ext JS in Action</a>.</p>
<h3>Remember, it&#8217;s still a web app</h3>
<p>Write good JavaScript code. Use <a href="http://jslint.com/">JSLint</a>. Read <a href="http://jonathanjulian.com/2009/07/javascript-the-good-parts/">The Good Parts</a> and <a href="http://stevesouders.com/efws/">Even Faster Websites</a>.</p>
<h3>Prefer an Ext JS SPA to a classic &#8220;web app&#8221;</h3>
<p>This is a tricky one. If you have the choice, build your application in two tiers &#8211; Ext JS, and web service. They don&#8217;t even have to share the same endpoint! A cleaner design emerges when you separate the concept of the Ui and the data. If you work on a project that already muddles the two with server-side script tags and generation of Ext JS configs with &#8220;helpers&#8221;, then make it a goal to write all new code in the two-tier style. Put your Ext JS code in .js files. And only communicate with the server via JSONStores and Ajax requests.</p>
<div id="attachment_148" class="wp-caption alignright" style="width: 246px"><a href="http://github.com/jjulian/winner_picker"><img class="size-medium wp-image-148  " title="winner_picker on github" src="http://jonathanjulian.com/wp-content/uploads/2010/01/winner_picker-291x300.png" alt="jjulian/winner_picker" width="236" height="243" /></a><p class="wp-caption-text">The winner_picker UI.</p></div>
<h3>The Winner Picker App</h3>
<p>Shea brought a few copies of <a href="http://learningextjs.com/">Learning Ext JS</a>, and Jay brought a few vouchers for an early access copy of <a href="http://extjsinaction.com/">Ext JS in Action</a>. We needed a way to give them away &#8211; so, I dreamed up a simple app to randomly choose an attendee. To make it fun, I wanted to have a slick animation to randomly highlight attendees names for a few seconds before the choice is shown.</p>
<p>In less than an hour or so, here&#8217;s the Ext JS app I made: it&#8217;s a grid with an Array Store (attendees were entered manually), and one button that kicks off the process. And the silly animation: every 10ms, a grid row is selected at random and highlighted. The delay is slowly ramped down for effect. After a few seconds, the last random choice is made, and a message box is shown with the winner&#8217;s name. The<a href="http://github.com/jjulian/winner_picker"> code is on github</a>, and I encourage you to fork the project and improve it, for no other reason than practice (basic knowledge of git is <a href="http://jonathanjulian.com/2009/08/basic-git/">easy to get</a>). The Five Tips can be applied to this tiny project just as well as they can to your large enterprise project!</p>
<h3>Conclusion</h3>
<p>I think it was a successful event, and I hope to be involved in the future. There were a handful of intense discussions afterwards &#8211; it&#8217;s good to be a part of a passionate community! If you are in the Baltimore area, come on out to <a href="http://www.meetup.com/baltimore-dc-javascript-users/">our JavaScript meetup</a> and hang out with us on the first Wednesday of every month. We meet at the <a href="http://beehivebaltimore.com/">Beehive</a> in Canton. If you are in NOVA and want to help build the Ext JS meetup scene there, get in contact with Pat (<a href="http://twitter.com/sheridap">@sheridap</a>) or Jay (<a href="http://twitter.com/tdgi">@tdgi</a>).</p>
<p>I&#8217;d love to hear what you think about the Five Tips. Feel free to comment here, or on the <a href="http://www.slideshare.net/jonathanjulian/five-tips-to-improve-your-ext-js-application">slideshare page</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://jonathanjulian.com/2010/01/five-tips-to-improve-your-ext-js-application/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>ExtJS 2.2 JsonStore, HttyProxy method is case-sensitive</title>
		<link>http://jonathanjulian.com/2009/06/extjs-22-jsonstore-httyproxy-method-is-case-sensitive/</link>
		<comments>http://jonathanjulian.com/2009/06/extjs-22-jsonstore-httyproxy-method-is-case-sensitive/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 14:09:54 +0000</pubDate>
		<dc:creator>jonathan</dc:creator>
				<category><![CDATA[extjs]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://jonathanjulian.com/2009/06/extjs-22-jsonstore-httyproxy-method-is-case-sensitive/</guid>
		<description><![CDATA[When overriding the HTTP method from post to get on your JsonStore, the method name is case sensitive. It must be capitalized.

var store = new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({url: '/data', method: 'GET'})
});

Using method: &#8216;get&#8217; does not work &#8211; it will still be an http post. This is clearly stated in the docs, but it&#8217;s too bad [...]]]></description>
			<content:encoded><![CDATA[<p>When overriding the HTTP method from post to get on your JsonStore, the method name is case sensitive. It must be capitalized.<br />
<code><br />
var store = new Ext.data.JsonStore({<br />
proxy: new Ext.data.HttpProxy({url: '/data', method: 'GET'})<br />
});<br />
</code><br />
Using method: &#8216;get&#8217; does not work &#8211; it will still be an http post. This is clearly stated in the docs, but it&#8217;s too bad it&#8217;s case-sensitive.</p>
]]></content:encoded>
			<wfw:commentRss>http://jonathanjulian.com/2009/06/extjs-22-jsonstore-httyproxy-method-is-case-sensitive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embedding Flash in an ExtJS component</title>
		<link>http://jonathanjulian.com/2009/04/embedding-flash-in-an-extjs-component/</link>
		<comments>http://jonathanjulian.com/2009/04/embedding-flash-in-an-extjs-component/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 04:18:53 +0000</pubDate>
		<dc:creator>jonathan</dc:creator>
				<category><![CDATA[extjs]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://jonathanjulian.com/?p=43</guid>
		<description><![CDATA[ExtJS does not like it when your code uses document.write. Whatever you write blows away the entire Viewport and that&#8217;s all you see. So as I&#8217;m converting a client&#8217;s existing site into Ext controls, I bump into this when I try to put a Flash swf into an Ext.Panel.
Boom. When the panel with the Flash [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://extjs.com/">ExtJS</a> does not like it when your code uses <strong>document.write</strong>. Whatever you write blows away the entire Viewport and that&#8217;s all you see. So as I&#8217;m converting a client&#8217;s existing site into Ext controls, I bump into this when I try to put a Flash swf into an Ext.Panel.</p>
<p>Boom. When the panel with the Flash is rendered, it takes over the entire page. Not <em>quite</em> what I want it to do.</p>
<p>So I see the Flash is being created in js code, using something called AC_FL_RunContent(). It&#8217;s from the <a href="http://www.adobe.com/products/flashplayer/download/detection_kit/">Adobe Flash Player Detection Kit</a> &#8211; a handy javascript library that will render cross-browser html to show your movie. Using&#8230;document.write! Yow!</p>
<p>So a bit of <a href="http://www.google.com/search?q=extjs+flash&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a">googling</a> turns up only a few forum posts discussing how to render Flash inside of Ext components. One popular solution is to use the <a href="http://code.google.com/p/uxmedia/">uxmedia</a> Ext extension&#8230;but it&#8217;s not open source for <a href="http://licensing.theactivegroup.com/">commercial use</a>. And in addition, I don&#8217;t need a pretty way to invoke my Flash, I just need the existing Web 1.0 way to <em>just work</em> inside an Ext component.</p>
<p>So, time for a little hackery. The Flash Player Detection Kit includes the helpful file AC_OETags.js, which is what you would include with your webapp. You call the javascript function AC_FL_RunContent(), passing a bunch of arguments. So here&#8217;s the simple hack: instead of <strong>document.write</strong>-ing the string, change the code to <strong>return</strong> that string to you. Make AC_Generateobj return the str, and make AC_FL_RunContent return the results.</p>
<p>Now in your client code, capture the html:</p>
<pre>var flash_object_markup = AC_FL_RunContent(.......);</pre>
<p>And then render it into a div using a Panel.</p>
<pre>// assuming &lt;div id="flash_content"&gt;&lt;/div&gt;
var content = new Ext.Panel({
  html: flash_object_markup
});
content.render('flash_content');</pre>
<p>And now the flash object is contained and manged by ExtJS.</p>
<p>I&#8217;m sure <strong>hacking the Adobe js file</strong> isn&#8217;t for everyone, but I think it&#8217;s perfectly reasonable. And if you have pre-existing js code that creates Flash html with the Detection Kit, this is a pretty seamless way to get them integrated with ExtJS. And nobody should be using document.write, <em>anyway</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jonathanjulian.com/2009/04/embedding-flash-in-an-extjs-component/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
