<?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>American Butifarra &#187; Framework</title> <atom:link href="http://claude.betancourt.us/tag/framework/feed/" rel="self" type="application/rss+xml" /><link>http://claude.betancourt.us</link> <description>Claude Betancourt&#039;s Personal Blog</description> <lastBuildDate>Fri, 16 Dec 2011 02:43:25 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>ExtJS ComboBox Hidden Field Issues</title><link>http://claude.betancourt.us/extjs-combobox-hidden-field-issues/</link> <comments>http://claude.betancourt.us/extjs-combobox-hidden-field-issues/#comments</comments> <pubDate>Tue, 09 Mar 2010 18:57:26 +0000</pubDate> <dc:creator>Claude</dc:creator> <category><![CDATA[Ext JS]]></category> <category><![CDATA[Framework]]></category> <category><![CDATA[How-To]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[Ext JS 3]]></category><guid isPermaLink="false">http://claude.betancourt.us/?p=721</guid> <description><![CDATA[Despite looking like a typical select box, Ext.form.ComboBox does not behave exactly as you would expect. It submits the display text instead of the selected option's value. This post provides a solution to this problem. <a href="http://claude.betancourt.us/extjs-combobox-hidden-field-issues/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p class="alert">This post refers to version 3.x of the Ext-JS framework.</p><p>Despite looking like a typical select box, <a href="http://www.extjs.com/deploy/dev/docs/?class=Ext.form.ComboBox"><strong>Ext.form.ComboBox</strong></a> doesn&#8217;t behave exactly as you would expect since it submits the display text instead of the selected option&#8217;s value. The documentation states:</p><blockquote><p>A ComboBox works in a similar manner to a traditional HTML &lt;select&gt; field. The difference is that to submit the valueField, you must specify a hiddenName to create a hidden input field to hold the value of the valueField. The displayField is shown in the text field which is named according to the name.</p></blockquote><pre class="brush: jscript; highlight: [5,6]; title: ; notranslate">
this.add([
	{
		xtype: 'combo',
		name: 'suffix',
		hiddenName: 'suffixId', // post this name
		hiddenValue: 0, // default value
		fieldLabel: 'Suffix',
		mode: 'local',
		store: this.suffixStore,
		valueField: 'key',
		displayField: 'display',
		triggerAction: 'all',
		forceSelection: true,
		allowBlank: true
	}
]);
</pre><p>Adding a <strong>hiddenName</strong> and a default value in <strong>hiddenValue</strong> does the trick, the default value (0) is set in the hidden field until a user chooses a different value. Unfortunately this breaks when the ComboBox is set to allow blanks and the user tabs over the field. When this happens, the hiddenValue is set to a null string and the user is never prompted to select a value.</p><p>Upon form submission, the hiddenField (<strong>suffixId</strong>) will be set to neither the default nor a valid value.</p><p>One solution is to listen for the <strong>focus</strong> and <strong>blur</strong> events to reset the value of the hidden field when it has been set to a null string.</p><pre class="brush: jscript; highlight: [15,16,17,18,19]; title: ; notranslate">
this.add([
	{
		xtype: 'combo',
		name: 'suffix',
		hiddenName: 'suffixId',
		hiddenValue: 0,
		fieldLabel: 'Suffix',
		mode: 'local',
		store: this.suffixStore,
		valueField: 'key',
		displayField: 'display',
		triggerAction: 'all',
		forceSelection: true,
		allowBlank: true,
		listeners: {
			'focus': this.handleSuffixChange,
			'blur': this.handleSuffixChange,
			scope: this
		}
	}
]);

handleSuffixChange: function(field) {
	if (field.value==='') {
		field.hiddenField.value = '0';
	}
}
</pre><p>Upon form submission you will be guaranteed a valid value, which is especially beneficial if you&#8217;re using the form values to populate a server side bean object.</p> ]]></content:encoded> <wfw:commentRss>http://claude.betancourt.us/extjs-combobox-hidden-field-issues/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Introduction to Ext.Direct</title><link>http://claude.betancourt.us/introduction-to-extdirect/</link> <comments>http://claude.betancourt.us/introduction-to-extdirect/#comments</comments> <pubDate>Wed, 13 May 2009 14:09:52 +0000</pubDate> <dc:creator>Claude</dc:creator> <category><![CDATA[Articles]]></category> <category><![CDATA[Ext JS]]></category> <category><![CDATA[Framework]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Platform]]></category> <category><![CDATA[Protocol]]></category> <category><![CDATA[.NET]]></category> <category><![CDATA[ColdFusion]]></category> <category><![CDATA[Java]]></category> <category><![CDATA[Library]]></category> <category><![CDATA[Perl]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Ruby]]></category><guid isPermaLink="false">http://claude.betancourt.us/?p=581</guid> <description><![CDATA[Evan Trimboli of the Ext-JS team just published an article describing Ext.Direct, a remoting API that is part of Ext 3.0. <a href="http://claude.betancourt.us/introduction-to-extdirect/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><span class="drop_cap">E</span>van Trimboli of the Ext-JS team just published an article describing Ext.Direct, a remoting API that is part of Ext 3.0. The team has created a <a href="http://extjs.com/products/extjs/direct.php">remoting specification</a> that you can use to implement the server-side stack of your choice.</p><p>Details about server-specific implementations already being maintained <a href="http://extjs.com/forum/showthread.php?t=67992">can be found here</a>.</p><blockquote><p> Ext.Direct is a new package in Ext JS 3.0 that helps alleviate many of these issues by streamlining communication between your client and server. When using Ext.Direct, you can expect to write 30% less code by eliminating common boiler plate code.</p><p>The Ext.direct namespace introduces several new classes for a close integration with the server-side. New classes have also been added to the Ext.data namespace for working with Ext.data.Stores which are backed by data from an Ext.Direct method.</p><p>Ext.Direct uses a provider architecture, where one or more providers are used to transport data to and from the server. There are several providers that exist in the core at the moment, for example a JsonProvider for simple JSON operations and a PollingProvider for repeated requests. One of the most powerful providers is the RemotingProvider.</p></blockquote><p><a href="http://extjs.com/blog/2009/05/13/introducing-ext-direct/">Read the rest here</a>.</p> ]]></content:encoded> <wfw:commentRss>http://claude.betancourt.us/introduction-to-extdirect/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Thesis 1.5 is Now Available</title><link>http://claude.betancourt.us/thesis-15-is-now-available/</link> <comments>http://claude.betancourt.us/thesis-15-is-now-available/#comments</comments> <pubDate>Thu, 30 Apr 2009 02:07:47 +0000</pubDate> <dc:creator>Claude</dc:creator> <category><![CDATA[Framework]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[SEO]]></category> <category><![CDATA[Theme]]></category> <category><![CDATA[Thes]]></category> <category><![CDATA[Thesis]]></category> <category><![CDATA[ThesisWP]]></category> <category><![CDATA[Wordpress]]></category><guid isPermaLink="false">http://claude.betancourt.us/?p=487</guid> <description><![CDATA[Thesis 1.5 is available now, and it boasts completely rebuilt options pages as well as some new design options that are quite literally going to revolutionize the way we build websites. <a href="http://claude.betancourt.us/thesis-15-is-now-available/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><a href="http://claude.betancourt.us/r/thesis-detail.php"><img class="aligncenter frame" src="http://cdn.betancourt.us/claude/images/ads/thesis-theme-tap.jpg" /></a></p><p><span class="drop_cap">T</span>he prolific team at DIY Themes has released the latest version of <strong><a href="http://claude.betancourt.us/r/thesis-detail.php">Thesis</a></strong>, the best theme/framework for WordPress. See <a href="http://claude.betancourt.us/r/thesis-testimonials.php"><strong>what customers are saying</strong></a> about their Thesis experience!</p><p><img style="border:0" src="https://diythemes.com/aff/scripts/imp.php?a_aid=beancentral&amp;a_bid=34655204" width="1" height="1" alt="" /></p> ]]></content:encoded> <wfw:commentRss>http://claude.betancourt.us/thesis-15-is-now-available/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Yahoo! Releases YUI 2.6.0</title><link>http://claude.betancourt.us/yahoo-releases-yui-260/</link> <comments>http://claude.betancourt.us/yahoo-releases-yui-260/#comments</comments> <pubDate>Thu, 02 Oct 2008 15:16:27 +0000</pubDate> <dc:creator>Claude</dc:creator> <category><![CDATA[Framework]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[Yahoo!]]></category> <category><![CDATA[YUI]]></category><guid isPermaLink="false">http://claude.betancourt.us/?p=144</guid> <description><![CDATA[2.6.0 introduces a new Carousel Control, offers the Paginator Control for general use (it was previously bundled with DataTable), includes more than 450 total fixes, enhancements and optimizations, graduates eight components out of “beta,” and now ships with more than 290 functional examples. <a href="http://claude.betancourt.us/yahoo-releases-yui-260/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><span class="drop_cap">Y</span><a href="http://yuiblog.com/blog/2008/10/01/yui-260">UI 2.6.0</a> introduces a new Carousel Control, offers the Paginator Control for general use (it was previously bundled with DataTable), includes more than 450 total fixes, enhancements and optimizations, graduates eight components out of “beta,” and now ships with more than 290 functional examples.</p><p>The YUI library has grown to include two new components:</p><ul><li>Carousel</li><li>Paginator (functionality previously released in DataTable but spun out for standalone use)</li></ul><p>The following components have graduated from Beta to GA status:</p><ul><li>Cookie</li><li>DataTable</li><li>DataSource</li><li>Layout Manager</li><li>Rich Text Editor</li><li>Resize</li><li>Profiler</li></ul> ]]></content:encoded> <wfw:commentRss>http://claude.betancourt.us/yahoo-releases-yui-260/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Microsoft and Nokia to use jQuery</title><link>http://claude.betancourt.us/microsoft-and-nokia-to-use-jquery/</link> <comments>http://claude.betancourt.us/microsoft-and-nokia-to-use-jquery/#comments</comments> <pubDate>Sun, 28 Sep 2008 18:52:53 +0000</pubDate> <dc:creator>Claude</dc:creator> <category><![CDATA[JavaScript]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Framework]]></category> <category><![CDATA[Microsoft]]></category> <category><![CDATA[Nokia]]></category><guid isPermaLink="false">http://claude.betancourt.us/?p=134</guid> <description><![CDATA[This morning during the state of jQuery, John Resig announced that Nokia will be including jQuery as the framework of choice with their new equipment. And Scott Guthrie of Microsoft just made a similar announcement, Visual Studio will ship with jQuery support. <a href="http://claude.betancourt.us/microsoft-and-nokia-to-use-jquery/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><span class="drop_cap">T</span>his morning during the state of jQuery, <a href="http://jquery.com/blog/2008/09/28/jquery-microsoft-nokia/">John Resig announced</a> that Nokia will be including jQuery as the framework of choice with their new equipment. And Scott Guthrie of Microsoft just made a <a href="http://weblogs.asp.net/scottgu/archive/2008/09/28/jquery-and-microsoft.aspx">similar announcement</a>, Visual Studio will ship with jQuery support.</p> ]]></content:encoded> <wfw:commentRss>http://claude.betancourt.us/microsoft-and-nokia-to-use-jquery/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: claude.betancourt.us @ 2012-02-07 14:57:27 by W3 Total Cache -->
