<?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>Blog - Epiphany Digital &#187; Web Development</title>
	<atom:link href="http://www.epiphanydigital.biz/category/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.epiphanydigital.biz</link>
	<description>Wibbly Wobbly Timey Wimey... Stuff</description>
	<lastBuildDate>Fri, 30 Dec 2011 14:50:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Fix for Sencha Touch Rounded Corners Bug in v1.0-1.1.1</title>
		<link>http://www.epiphanydigital.biz/2011/12/30/fix-for-sencha-touch-rounded-corners-bug-in-v1-0-1-1-1/</link>
		<comments>http://www.epiphanydigital.biz/2011/12/30/fix-for-sencha-touch-rounded-corners-bug-in-v1-0-1-1-1/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 14:49:21 +0000</pubDate>
		<dc:creator>eDigital Admin</dc:creator>
				<category><![CDATA[Mobile Web]]></category>
		<category><![CDATA[Sencha Touch]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.epiphanydigital.biz/?p=206</guid>
		<description><![CDATA[Some rounded corners in Sencha Touch forms with fieldsets look like garbage by default.  Here&#8217;s a CSS only fix: .x-form-fieldset .x-field:first-child.x-label-align-top .x-field-text, .x-form-fieldset .x-field:first-child.x-label-align-top .x-input-text, .x-form-fieldset .x-field:first-child.x-label-align-top .x-input, .x-form-fieldset .x-field:first-child.x-label-align-top .x-input-number, .x-form-fieldset .x-field:first-child.x-label-align-top .x-spinner-body, .x-form-fieldset .x-field:first-child.x-label-align-top .x-input-radio, .x-form-fieldset .x-field:first-child.x-label-align-top .x-input-checkbox, .x-form-fieldset .x-field:first-child.x-label-align-top .x-input-email, .x-form-fieldset .x-field:first-child.x-label-align-top .x-input-url, .x-form-fieldset .x-field:first-child.x-label-align-top .x-input-password, .x-form-fieldset .x-field:first-child.x-label-align-top .x-input-slider { -webkit-border-top-left-radius: 0; [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.epiphanydigital.biz/2011/12/30/fix-for-sencha-touch-rounded-corners-bug-in-v1-0-1-1-1/' addthis:title='Fix for Sencha Touch Rounded Corners Bug in v1.0-1.1.1 ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Some rounded corners in Sencha Touch forms with <code>fieldsets</code> look like garbage by default.  Here&#8217;s a CSS only fix:</p>
<pre class="prettyprint">.x-form-fieldset .x-field:first-child.x-label-align-top .x-field-text,
.x-form-fieldset .x-field:first-child.x-label-align-top .x-input-text,
.x-form-fieldset .x-field:first-child.x-label-align-top .x-input,
.x-form-fieldset .x-field:first-child.x-label-align-top .x-input-number,
.x-form-fieldset .x-field:first-child.x-label-align-top .x-spinner-body,
.x-form-fieldset .x-field:first-child.x-label-align-top .x-input-radio,
.x-form-fieldset .x-field:first-child.x-label-align-top .x-input-checkbox,
.x-form-fieldset .x-field:first-child.x-label-align-top .x-input-email,
.x-form-fieldset .x-field:first-child.x-label-align-top .x-input-url,
.x-form-fieldset .x-field:first-child.x-label-align-top .x-input-password,
.x-form-fieldset .x-field:first-child.x-label-align-top .x-input-slider {
  -webkit-border-top-left-radius: 0;
  border-top-left-radius: 0;
  -webkit-border-top-right-radius: 0;
  border-top-right-radius: 0;
}</pre>
<p>&nbsp;</p>
<p>Thank you: <a href="http://www.sencha.com/forum/showthread.php?152265-CSS-bugs-with-fieldsets-and-labelAlign-top">http://www.sencha.com/forum/showthread.php?152265-CSS-bugs-with-fieldsets-and-labelAlign-top</a></p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.epiphanydigital.biz/2011/12/30/fix-for-sencha-touch-rounded-corners-bug-in-v1-0-1-1-1/' addthis:title='Fix for Sencha Touch Rounded Corners Bug in v1.0-1.1.1 ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.epiphanydigital.biz/2011/12/30/fix-for-sencha-touch-rounded-corners-bug-in-v1-0-1-1-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Count Number of Lines of Code in a Project</title>
		<link>http://www.epiphanydigital.biz/2011/12/20/count-number-of-lines-of-code-in-a-project/</link>
		<comments>http://www.epiphanydigital.biz/2011/12/20/count-number-of-lines-of-code-in-a-project/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 19:44:11 +0000</pubDate>
		<dc:creator>eDigital Admin</dc:creator>
				<category><![CDATA[BASH]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.epiphanydigital.biz/?p=204</guid>
		<description><![CDATA[find .&#47; -name \*.js &#124; xargs wc [find] [in this current directory] [files named] ["wildcard".js] [and] [just print counts] The first column is the number of lines for the listed file, with the total count at the bottom.  As you can tell, I&#8217;m working on a JavaScript project.<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.epiphanydigital.biz/2011/12/20/count-number-of-lines-of-code-in-a-project/' addthis:title='Count Number of Lines of Code in a Project ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p><code class="prettyprint">find .&#47; -name \*.js | xargs wc</code></p>
<p>[find] [in this current directory] [files named] ["wildcard".js] [and] [just print counts]</p>
<p>The first column is the number of lines for the listed file, with the total count at the bottom.  As you can tell, I&#8217;m working on a JavaScript project.</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.epiphanydigital.biz/2011/12/20/count-number-of-lines-of-code-in-a-project/' addthis:title='Count Number of Lines of Code in a Project ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.epiphanydigital.biz/2011/12/20/count-number-of-lines-of-code-in-a-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modify Your Drupal Registration Form in a Zen Sub Theme</title>
		<link>http://www.epiphanydigital.biz/2011/12/15/modify-your-drupal-registration-form-in-a-zen-sub-theme/</link>
		<comments>http://www.epiphanydigital.biz/2011/12/15/modify-your-drupal-registration-form-in-a-zen-sub-theme/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 18:14:29 +0000</pubDate>
		<dc:creator>eDigital Admin</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.epiphanydigital.biz/?p=190</guid>
		<description><![CDATA[Add the following to your template.php file, and you can add your own user-register.tpl.php and user-profile-edit.tpl.php files to your theme.  For my purposes, I wanted to remove the form so I just added a paragraph to the tpl file and left it at that. YOURTHEMENAME_theme(&#38;existing, $type, $theme, $path){ return array( &#39;$hooks&#39; =&#62; zen_theme($existing, $type, $theme, [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.epiphanydigital.biz/2011/12/15/modify-your-drupal-registration-form-in-a-zen-sub-theme/' addthis:title='Modify Your Drupal Registration Form in a Zen Sub Theme ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Add the following to your template.php file, and you can add your own user-register.tpl.php and user-profile-edit.tpl.php files to your theme.  For my purposes, I wanted to remove the form so I just added a paragraph to the tpl file and left it at that.</p>
<pre class="prettyprint">YOURTHEMENAME_theme(&amp;existing, $type, $theme, $path){
  return array(
    &#39;$hooks&#39; =&gt; zen_theme($existing, $type, $theme, $path),
      &#39;user_register&#39; =&gt; array(
      &#39;template&#39; =&gt; &#39;user-register&#39;,
      &#39;arguments&#39; =&gt; array(&#39;form&#39; =&gt; NULL),
    ),
    &#39;user_profile_form&#39; =&gt; array(
      &#39;template&#39; =&gt; &#39;user-profile-edit&#39;,
      &#39;arguments&#39; =&gt; array(&#39;form&#39; =&gt; NULL),
    ),
  );
}</pre>
<p>I took some of the info from comments <a href="http://www.trellon.com/content/blog/theming-user-register-form-d6">here</a> and Drupal documentation <a href="http://drupal.org/node/868732">here</a>. Thanks!</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.epiphanydigital.biz/2011/12/15/modify-your-drupal-registration-form-in-a-zen-sub-theme/' addthis:title='Modify Your Drupal Registration Form in a Zen Sub Theme ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.epiphanydigital.biz/2011/12/15/modify-your-drupal-registration-form-in-a-zen-sub-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The iPhone, Cookies, and JSONP Logins</title>
		<link>http://www.epiphanydigital.biz/2011/11/29/the-iphone-cookies-and-jsonp-logins/</link>
		<comments>http://www.epiphanydigital.biz/2011/11/29/the-iphone-cookies-and-jsonp-logins/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 16:53:22 +0000</pubDate>
		<dc:creator>eDigital Admin</dc:creator>
				<category><![CDATA[iOS]]></category>
		<category><![CDATA[Mobile Web]]></category>
		<category><![CDATA[Sencha Touch]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.epiphanydigital.biz/?p=184</guid>
		<description><![CDATA[I&#8217;ve been working a lot on mobile apps lately and one issue I recently came across was that my logins that are handled over JSONP requests work just fine on Chrome desktop and the Android browser, but not on Safari (mobile or desktop) unless I changed cookie settings on the device to &#8220;Accept All&#8221;.  That&#8217;s [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.epiphanydigital.biz/2011/11/29/the-iphone-cookies-and-jsonp-logins/' addthis:title='The iPhone, Cookies, and JSONP Logins ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working a lot on mobile apps lately and one issue I recently came across was that my logins that are handled over JSONP requests work just fine on Chrome desktop and the Android browser, but not on Safari (mobile or desktop) unless I changed cookie settings on the device to &#8220;Accept All&#8221;.  That&#8217;s an awful answer since I don&#8217;t want to just force users to change their settings just to be able to use my app.</p>
<p>I&#8217;m now using the default setting, which is &#8220;Accept Visited&#8221; and my workaround was to include an iFrame with the source set to my server domain that is being logged into remotely and style is set to &#8220;display:none&#8221; since I don&#8217;t actually want to show the iFrame.  I consider this quite the hack, so if someone else has a better idea I&#8217;m all ears.</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.epiphanydigital.biz/2011/11/29/the-iphone-cookies-and-jsonp-logins/' addthis:title='The iPhone, Cookies, and JSONP Logins ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.epiphanydigital.biz/2011/11/29/the-iphone-cookies-and-jsonp-logins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add alt tag to Sencha image buttons for 508 Compliance</title>
		<link>http://www.epiphanydigital.biz/2011/11/28/add-alt-tag-to-sencha-image-buttons-for-508-compliance/</link>
		<comments>http://www.epiphanydigital.biz/2011/11/28/add-alt-tag-to-sencha-image-buttons-for-508-compliance/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 20:32:37 +0000</pubDate>
		<dc:creator>eDigital Admin</dc:creator>
				<category><![CDATA[Mobile Web]]></category>
		<category><![CDATA[Sencha Touch]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.epiphanydigital.biz/?p=181</guid>
		<description><![CDATA[Here&#8217;s an override for Sencha v1.1.1 to allow for a label field to be added to a button that is applied as an alt tag to an image button.  It&#8217;s pretty cool. Ext.override(Ext.Button, { label : &#39;&#39;, setIconClass: function(cls) { var me = this; if (me.rendered) { if (!me.iconEl &#38;&#38; cls) { me.iconEl = me.el.createChild({ [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.epiphanydigital.biz/2011/11/28/add-alt-tag-to-sencha-image-buttons-for-508-compliance/' addthis:title='Add alt tag to Sencha image buttons for 508 Compliance ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s an override for Sencha v1.1.1 to allow for a label field to be added to a button that is applied as an alt tag to an image button.  It&#8217;s pretty cool.</p>
<pre class="prettyprint">Ext.override(Ext.Button, {
  label   : &#39;&#39;,
  setIconClass: function(cls) {
      var me = this;

      if (me.rendered) {
          if (!me.iconEl &amp;&amp; cls) {
              me.iconEl = me.el.createChild({
                  tag: &#39;img&#39;,
                  src: Ext.BLANK_IMAGE_URL,
                  cls: cls
              });
              me.iconEl.set({
                &#39;alt&#39;   : this.label
              });
              me.setIconAlign(me.iconAlign);
          }
          else if (me.iconEl &amp;&amp; cls != me.iconCls) {
              if (cls) {
                  if (me.iconCls) {
                      me.iconEl.removeCls(me.iconCls);
                  }
                  me.iconEl.addCls(cls);
                  me.setIconAlign(me.iconAlign);
              }
              else {
                  me.setIconAlign(false);
                  me.iconEl.remove();
                  me.iconEl = null;
              }
          }
      }
      me.iconCls = cls;
      return me;
  },
  setIcon : function(icon) {
    var me = this;
    if (me.rendered) {
      if (!me.iconEl &amp;&amp; icon) {
        me.iconEl = me.el.createChild({
          tag: &#39;img&#39;,
          src: Ext.BLANK_IMAGE_URL,
          style: &#39;background-image: &#39; + (icon ? &#39;url(&#39; + icon + &#39;)&#39; : &#39;&#39;)
        });
        me.iconEl.set({
          &#39;alt&#39;   : this.label
        });
        me.setIconAlign(me.iconAlign);
      } else if (me.iconEl &amp;&amp; icon != me.icon) {
        if (icon) {
          me.iconEl.setStyle(&#39;background-image&#39;, icon ? &#39;url(&#39; + icon + &#39;)&#39; : &#39;&#39;);
          me.setIconAlign(me.iconAlign);
        }
        else {
          me.setIconAlign(false);
          me.iconEl.remove();
          me.iconEl = null;
        }
      }
    }
    me.icon = icon;
    return me;
  }
});</pre>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.epiphanydigital.biz/2011/11/28/add-alt-tag-to-sencha-image-buttons-for-508-compliance/' addthis:title='Add alt tag to Sencha image buttons for 508 Compliance ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.epiphanydigital.biz/2011/11/28/add-alt-tag-to-sencha-image-buttons-for-508-compliance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use a label tag instead of a div on Sencha Forms</title>
		<link>http://www.epiphanydigital.biz/2011/11/15/use-a-label-tag-instead-of-a-div-on-sencha-forms/</link>
		<comments>http://www.epiphanydigital.biz/2011/11/15/use-a-label-tag-instead-of-a-div-on-sencha-forms/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 17:38:53 +0000</pubDate>
		<dc:creator>eDigital Admin</dc:creator>
				<category><![CDATA[Mobile Web]]></category>
		<category><![CDATA[Sencha Touch]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.epiphanydigital.biz/?p=171</guid>
		<description><![CDATA[Here&#8217;s how to override the default template for an input label and make it an actual label, in semantic traditional 508 compliant markup. Ext.override(Ext.form.TextArea, {     renderTpl: &#91;         &#39;&#60;tpl if=&#34;label&#34;&#62;&#60;label for=&#34;{inputId}&#34;&#62;&#60;span&#62;{label}&#60;&#47;span&#62;&#60;&#47;label&#62;&#60;&#47;tpl&#62;&#39;,         &#39;&#60;tpl if=&#34;fieldEl&#34;&#62;&#60;div&#62;&#39;,             &#39;&#60;textarea id=&#34;{inputId}&#34; type=&#34;{type}&#34; name=&#34;{name}&#34;&#39;,             &#39;&#60;tpl if=&#34;tabIndex&#34;&#62;tabIndex=&#34;{tabIndex}&#34; &#60;&#47;tpl&#62;&#39;,             &#39;&#60;tpl if=&#34;placeHolder&#34;&#62;placeholder=&#34;{placeHolder}&#34; &#60;&#47;tpl&#62;&#39;,             &#39;&#60;tpl if=&#34;style&#34;&#62;style=&#34;{style}&#34; &#60;&#47;tpl&#62;&#39;,             &#39;&#60;tpl if=&#34;maxRows [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.epiphanydigital.biz/2011/11/15/use-a-label-tag-instead-of-a-div-on-sencha-forms/' addthis:title='Use a label tag instead of a div on Sencha Forms ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s how to override the default template for an input label and make it an actual label, in semantic traditional 508 compliant markup.</p>
<pre class="prettyprint">Ext.override(Ext.form.TextArea, {
    renderTpl: &#91;
        &#39;&lt;tpl if=&#34;label&#34;&gt;&lt;label for=&#34;{inputId}&#34;&gt;&lt;span&gt;{label}&lt;&#47;span&gt;&lt;&#47;label&gt;&lt;&#47;tpl&gt;&#39;,
        &#39;&lt;tpl if=&#34;fieldEl&#34;&gt;&lt;div&gt;&#39;,
            &#39;&lt;textarea id=&#34;{inputId}&#34; type=&#34;{type}&#34; name=&#34;{name}&#34;&#39;,
            &#39;&lt;tpl if=&#34;tabIndex&#34;&gt;tabIndex=&#34;{tabIndex}&#34; &lt;&#47;tpl&gt;&#39;,
            &#39;&lt;tpl if=&#34;placeHolder&#34;&gt;placeholder=&#34;{placeHolder}&#34; &lt;&#47;tpl&gt;&#39;,
            &#39;&lt;tpl if=&#34;style&#34;&gt;style=&#34;{style}&#34; &lt;&#47;tpl&gt;&#39;,
            &#39;&lt;tpl if=&#34;maxRows != undefined&#34;&gt;rows=&#34;{maxRows}&#34; &lt;&#47;tpl&gt;&#39;,
            &#39;&lt;tpl if=&#34;maxlength&#34;&gt;maxlength=&#34;{maxlength}&#34; &lt;&#47;tpl&gt;&#39;,
            &#39;&lt;tpl if=&#34;autoComplete&#34;&gt;autocomplete=&#34;{autoComplete}&#34; &lt;&#47;tpl&gt;&#39;,
            &#39;&lt;tpl if=&#34;autoCapitalize&#34;&gt;autocapitalize=&#34;{autoCapitalize}&#34; &lt;&#47;tpl&gt;&#39;,
            &#39;&lt;tpl if=&#34;autoFocus&#34;&gt;autofocus=&#34;{autoFocus}&#34; &lt;&#47;tpl&gt;&#39;,
            &#39;&gt;&lt;&#47;textarea&gt;&#39;,
            &#39;&lt;tpl if=&#34;useMask&#34;&gt;&lt;div&gt;&lt;&#47;div&gt;&lt;&#47;tpl&gt;&#39;,
        &#39;&lt;&#47;div&gt;&lt;&#47;tpl&gt;&#39;
    &#93;
});</pre>
<p><span id="more-171"></span></p>
<pre class="prettyprint">
Ext.override(Ext.form.Field,{
  renderTpl: &#91;
    &#39;&lt;tpl if=&#34;label&#34;&gt;&#39;,
        &#39;&lt;label for=&#34;{inputId}&#34;&gt;&lt;span&gt;{label}&lt;&#47;span&gt;&lt;&#47;label&gt;&#39;,
    &#39;&lt;&#47;tpl&gt;&#39;,
    &#39;&lt;tpl if=&#34;fieldEl&#34;&gt;&#39;,
        &#39;&lt;div&gt;&lt;input id=&#34;{inputId}&#34; type=&#34;{inputType}&#34; name=&#34;{name}&#34;&#39;,
            &#39;&lt;tpl if=&#34;tabIndex&#34;&gt;tabIndex=&#34;{tabIndex}&#34; &lt;&#47;tpl&gt;&#39;,
            &#39;&lt;tpl if=&#34;placeHolder&#34;&gt;placeholder=&#34;{placeHolder}&#34; &lt;&#47;tpl&gt;&#39;,
            &#39;&lt;tpl if=&#34;style&#34;&gt;style=&#34;{style}&#34; &lt;&#47;tpl&gt;&#39;,
            &#39;&lt;tpl if=&#34;maxlength&#34;&gt;maxlength=&#34;{maxlength}&#34; &lt;&#47;tpl&gt;&#39;,
            &#39;&lt;tpl if=&#34;autoComplete&#34;&gt;autocomplete=&#34;{autoComplete}&#34; &lt;&#47;tpl&gt;&#39;,
            &#39;&lt;tpl if=&#34;autoCapitalize&#34;&gt;autocapitalize=&#34;{autoCapitalize}&#34; &lt;&#47;tpl&gt;&#39;,
            &#39;&lt;tpl if=&#34;autoCorrect&#34;&gt;autocorrect=&#34;{autoCorrect}&#34; &lt;&#47;tpl&gt; &#47;&gt;&#39;,
        &#39;&lt;tpl if=&#34;useMask&#34;&gt;&lt;div&gt;&lt;&#47;div&gt;&lt;&#47;tpl&gt;&#39;,
        &#39;&lt;&#47;div&gt;&#39;,
        &#39;&lt;tpl if=&#34;useClearIcon&#34;&gt;&lt;div&gt;&lt;div&gt;&amp;#215;&lt;&#47;div&gt;&lt;&#47;div&gt;&lt;&#47;tpl&gt;&#39;,
    &#39;&lt;&#47;tpl&gt;&#39;
  &#93;
});

Ext.override(Ext.form.Slider, {
  renderTpl: &#91;
    &#39;&lt;tpl if=&#34;label&#34;&gt;&#39;,
        &#39;&lt;label for=&#34;{inputId}&#34;&gt;&lt;span&gt;{label}&lt;&#47;span&gt;&lt;&#47;label&gt;&#39;,
    &#39;&lt;&#47;tpl&gt;&#39;,
    &#39;&lt;tpl if=&#34;fieldEl&#34;&gt;&#39;,
        &#39;&lt;div id=&#34;{inputId}&#34; name=&#34;{name}&#34;&#39;,
        &#39;&lt;tpl if=&#34;tabIndex&#34;&gt;tabIndex=&#34;{tabIndex}&#34;&lt;&#47;tpl&gt;&#39;,
        &#39;&lt;tpl if=&#34;style&#34;&gt;style=&#34;{style}&#34; &lt;&#47;tpl&gt;&#39;,
    &#39;&#47;&gt;&lt;&#47;tpl&gt;&#39;
  &#93;
});

Ext.override(Ext.form.Number, {
    renderTpl: &#91;
        &#39;&lt;tpl if=&#34;label&#34;&gt;&lt;label for=&#34;{inputId}&#34;&gt;&lt;span&gt;{label}&lt;&#47;span&gt;&lt;&#47;label&gt;&lt;&#47;tpl&gt;&#39;,
        &#39;&lt;tpl if=&#34;fieldEl&#34;&gt;&lt;div&gt;&#39;,
            &#39;&lt;input id=&#34;{inputId}&#34; type=&#34;{inputType}&#34; name=&#34;{name}&#34;&#39;,
                &#39;&lt;tpl if=&#34;tabIndex&#34;&gt;tabIndex=&#34;{tabIndex}&#34; &lt;&#47;tpl&gt;&#39;,
                &#39;&lt;tpl if=&#34;placeHolder&#34;&gt;placeholder=&#34;{placeHolder}&#34; &lt;&#47;tpl&gt;&#39;,
                &#39;&lt;tpl if=&#34;style&#34;&gt;style=&#34;{style}&#34; &lt;&#47;tpl&gt;&#39;,
                &#39;&lt;tpl if=&#34;minValue != undefined&#34;&gt;min=&#34;{minValue}&#34; &lt;&#47;tpl&gt;&#39;,
                &#39;&lt;tpl if=&#34;maxValue != undefined&#34;&gt;max=&#34;{maxValue}&#34; &lt;&#47;tpl&gt;&#39;,
                &#39;&lt;tpl if=&#34;stepValue != undefined&#34;&gt;step=&#34;{stepValue}&#34; &lt;&#47;tpl&gt;&#39;,
                &#39;&lt;tpl if=&#34;autoComplete&#34;&gt;autocomplete=&#34;{autoComplete}&#34; &lt;&#47;tpl&gt;&#39;,
                &#39;&lt;tpl if=&#34;autoCapitalize&#34;&gt;autocapitalize=&#34;{autoCapitalize}&#34; &lt;&#47;tpl&gt;&#39;,
                &#39;&lt;tpl if=&#34;autoFocus&#34;&gt;autofocus=&#34;{autoFocus}&#34; &lt;&#47;tpl&gt;&#39;,
            &#39;&#47;&gt;&#39;,
            &#39;&lt;tpl if=&#34;useMask&#34;&gt;&lt;div&gt;&lt;&#47;div&gt;&lt;&#47;tpl&gt;&#39;,
            &#39;&lt;&#47;div&gt;&lt;&#47;tpl&gt;&#39;,
        &#39;&lt;tpl if=&#34;useClearIcon&#34;&gt;&lt;div&gt;&lt;div&gt;&amp;#215;&lt;&#47;div&gt;&lt;div&gt;&lt;&#47;tpl&gt;&#39;
    &#93;
});

Ext.override(Ext.form.Spinner, {
    renderTpl: &#91;
        &#39;&lt;tpl if=&#34;label&#34;&gt;&lt;label for=&#34;{inputId}&#34;&gt;&lt;span&gt;{label}&lt;&#47;span&gt;&lt;&#47;label&gt;&lt;&#47;tpl&gt;&#39;,
        &#39;&lt;tpl if=&#34;fieldEl&#34;&gt;&#39;,
            &#39;&lt;div&gt;&#39;,
                &#39;&lt;div&gt;&lt;span&gt;-&lt;&#47;span&gt;&lt;&#47;div&gt;&#39;,
                &#39;&lt;div&gt;&#39;,
                    &#39;&lt;input id=&#34;{inputId}&#34; type=&#34;{type}&#34; name=&#34;{name}&#34;&#39;,
                        &#39;&lt;tpl if=&#34;tabIndex&#34;&gt;tabIndex=&#34;{tabIndex}&#34; &lt;&#47;tpl&gt;&#39;,
                        &#39;&lt;tpl if=&#34;placeHolder&#34;&gt;placeholder=&#34;{placeHolder}&#34; &lt;&#47;tpl&gt;&#39;,
                        &#39;&lt;tpl if=&#34;style&#34;&gt;style=&#34;{style}&#34; &lt;&#47;tpl&gt;&#39;,
                        &#39;&lt;tpl if=&#34;minValue != undefined&#34;&gt;min=&#34;{minValue}&#34; &lt;&#47;tpl&gt;&#39;,
                        &#39;&lt;tpl if=&#34;maxValue != undefined&#34;&gt;max=&#34;{maxValue}&#34; &lt;&#47;tpl&gt;&#39;,
                        &#39;&lt;tpl if=&#34;stepValue != undefined&#34;&gt;step=&#34;{stepValue}&#34; &lt;&#47;tpl&gt;&#39;,
                        &#39;&lt;tpl if=&#34;autoComplete&#34;&gt;autocomplete=&#34;{autoComplete}&#34; &lt;&#47;tpl&gt;&#39;,
                        &#39;&lt;tpl if=&#34;autoFocus&#34;&gt;autofocus=&#34;{autoFocus}&#34; &lt;&#47;tpl&gt;&#39;,
                    &#39;&#47;&gt;&#39;,
                    &#39;&lt;tpl if=&#34;useMask&#34;&gt;&lt;div&gt;&lt;&#47;div&gt;&lt;&#47;tpl&gt;&#39;,
                &#39;&lt;&#47;div&gt;&#39;,
                &#39;&lt;div&gt;&lt;span&gt;+&lt;&#47;span&gt;&lt;&#47;div&gt;&#39;,
            &#39;&lt;&#47;div&gt;&#39;,
        &#39;&lt;&#47;tpl&gt;&#39;
    &#93;
});

Ext.override(Ext.form.Checkbox, {
  renderTpl : &#91;
    &#39;&lt;tpl if=&#34;label&#34;&gt;&lt;label for=&#34;{inputId}&#34;&gt;&lt;span&gt;{label}&lt;&#47;span&gt;&lt;&#47;label&gt;&lt;&#47;tpl&gt;&#39;,
    &#39;&lt;tpl if=&#34;fieldEl&#34;&gt;&lt;input id=&#34;{inputId}&#34; type=&#34;{inputType}&#34; name=&#34;{name}&#34; tabIndex=&#34;-1&#34; &#39;,
        &#39;&lt;tpl if=&#34;checked&#34;&gt; checked &lt;&#47;tpl&gt;&#39;,
        &#39;&lt;tpl if=&#34;style&#34;&gt;style=&#34;{style}&#34; &lt;&#47;tpl&gt; value=&#34;{inputValue}&#34; &#47;&gt;&#39;,
  &#39;&lt;&#47;tpl&gt;&#39;
  &#93;
});</pre>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.epiphanydigital.biz/2011/11/15/use-a-label-tag-instead-of-a-div-on-sencha-forms/' addthis:title='Use a label tag instead of a div on Sencha Forms ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.epiphanydigital.biz/2011/11/15/use-a-label-tag-instead-of-a-div-on-sencha-forms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add a &#8220;Add to Homescreen&#8221; Modal to your Sencha Touch v1 App</title>
		<link>http://www.epiphanydigital.biz/2011/11/08/add-a-add-to-homescreen-modal-to-your-sencha-touch-v1-app/</link>
		<comments>http://www.epiphanydigital.biz/2011/11/08/add-a-add-to-homescreen-modal-to-your-sencha-touch-v1-app/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 23:50:25 +0000</pubDate>
		<dc:creator>eDigital Admin</dc:creator>
				<category><![CDATA[Mobile Web]]></category>
		<category><![CDATA[Sencha Touch]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.epiphanydigital.biz/?p=167</guid>
		<description><![CDATA[So you&#8217;re in Sencha 1.1.x and need a custom overlay panel like an Ext.MessageBox but with a lot more options? This one in particular is set up to pop into view whenever you&#8217;re on this particular parent panel. I used a modded version of it to create an &#8220;Add to Homescreen&#8221; panel for iOS devices. [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.epiphanydigital.biz/2011/11/08/add-a-add-to-homescreen-modal-to-your-sencha-touch-v1-app/' addthis:title='Add a &#8220;Add to Homescreen&#8221; Modal to your Sencha Touch v1 App ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>So you&#8217;re in Sencha 1.1.x and need a custom overlay panel like an <code>Ext.MessageBox</code> but with a lot more options?  This one in particular is set up to pop into view whenever you&#8217;re on this particular parent panel.  I used a modded version of it to create an &#8220;Add to Homescreen&#8221; panel for iOS devices.</p>
<pre class="prettyprint">
App.Bookmark = new Ext.Panel({
  floating         : true,
  modal            : true,
  centered         : true,
  width            : Ext.is.Phone ? &#39;95%&#39; : 400,
  height           : Ext.is.Phone ? &#39;85%&#39; : &#39;60%&#39;,
  styleHtmlContent : true,
  mask : true,
  hideOnMaskTap    : false,
  scroll           : &#39;vertical&#39;,
  html             : &#39;Some html. Whatever. Knock yourself out.&#39;,
  dockedItems: &#91;
    {
      dock  : &#39;bottom&#39;,
      html  : &#39;
&lt;div class=&#34;x-bookmark&#34;&gt;&lt;span class=&#34;x-bookmark-img&#34;&gt;&lt;&#47;span&gt;&lt;&#47;div&gt;

&#39;,
      width : &#39;100%&#39;,
      style : {
        &#39;margin&#39; : (Ext.is.Phone) ? &#39;1em 0 0 0.25em&#39; : &#39;1em 0 1em 50px&#39; &#47;&#47; Me getting picky
      }
    },{
      dock  : &#39;top&#39;,
      xtype : &#39;toolbar&#39;,
      title : &#39;Add Bookmark&#39;,
      ui    : &#39;light&#39;,
      items : &#91;
        {
          xtype : &#39;spacer&#39;
        },{
          iconMask : true,
          ui       : &#39;plain&#39;,
          iconCls  : &#39;delete&#39;,
          handler  : function() {
            App.Bookmark.hide(&#39;fade&#39;);
            ParentPanel.getEl().unmask();  &#47;&#47; IMPORTANT
          }
        }
      &#93;
    }
  &#93;
});

App.ParentPanel = new Ext.Panel({
  id               : &#39;termsPanel&#39;,
  scroll           : &#39;vertical&#39;,
  layout           : &#39;fit&#39;,
  styleHtmlContent : true,
  html             : &#39;blah blah blah&#39;,
  listeners        : {
    activate  : function() {
      if (Ext.is.iOS) {
        this.getEl().mask();  &#47;&#47; IMPORTANT
        var child = App.Bookmark;
        child.show(&#39;pop&#39;); &#47;&#47; OMG MAGIC!!!
        var width = (this.getWidth(false) - child.getWidth(false)) &#47; 2;
        var height = Ext.is.Phone ? &#47;&#47; Really don&#39;t need this or the set position... I just wanted it docked at the bottom
          (this.getHeight(false) - child.getHeight(false) + 35) :
          (this.getHeight(false) - child.getHeight(false)) * 2 &#47; 3;
        child.setPosition(width,height);
      }
    }
  }
});
</pre>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.epiphanydigital.biz/2011/11/08/add-a-add-to-homescreen-modal-to-your-sencha-touch-v1-app/' addthis:title='Add a &#8220;Add to Homescreen&#8221; Modal to your Sencha Touch v1 App ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.epiphanydigital.biz/2011/11/08/add-a-add-to-homescreen-modal-to-your-sencha-touch-v1-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Sencha Gradient on Form Labels for Selectfields</title>
		<link>http://www.epiphanydigital.biz/2011/11/08/remove-sencha-gradient-on-form-labels-for-selectfields/</link>
		<comments>http://www.epiphanydigital.biz/2011/11/08/remove-sencha-gradient-on-form-labels-for-selectfields/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 19:11:03 +0000</pubDate>
		<dc:creator>eDigital Admin</dc:creator>
				<category><![CDATA[Mobile Web]]></category>
		<category><![CDATA[Sencha Touch]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.epiphanydigital.biz/?p=162</guid>
		<description><![CDATA[The gradient really shouldn&#8217;t be there. It doesn&#8217;t show up on the desktop. It does on the phone. Here&#8217;s a simple fix to add to your CSS: .x-field-select:before { background: inherit !important; } If that doesn&#8217;t get rid of it you may have to set it to a specific color such as this: .x-field-select:before { [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.epiphanydigital.biz/2011/11/08/remove-sencha-gradient-on-form-labels-for-selectfields/' addthis:title='Remove Sencha Gradient on Form Labels for Selectfields ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>The gradient really shouldn&#8217;t be there.  It doesn&#8217;t show up on the desktop.  It does on the phone.  Here&#8217;s a simple fix to add to your CSS:</p>
<pre class="prettyprint">
.x-field-select:before {
    background: inherit !important;
}
</pre>
<p>If that doesn&#8217;t get rid of it you may have to set it to a specific color such as this:</p>
<pre class="prettyprint">
.x-field-select:before {
    background: #F0EEDF !important;
}
</pre>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.epiphanydigital.biz/2011/11/08/remove-sencha-gradient-on-form-labels-for-selectfields/' addthis:title='Remove Sencha Gradient on Form Labels for Selectfields ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.epiphanydigital.biz/2011/11/08/remove-sencha-gradient-on-form-labels-for-selectfields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sencha Touch Numberfield is too Short</title>
		<link>http://www.epiphanydigital.biz/2011/11/08/sencha-touch-numberfield-is-too-short/</link>
		<comments>http://www.epiphanydigital.biz/2011/11/08/sencha-touch-numberfield-is-too-short/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 19:07:58 +0000</pubDate>
		<dc:creator>eDigital Admin</dc:creator>
				<category><![CDATA[Sencha Touch]]></category>

		<guid isPermaLink="false">http://www.epiphanydigital.biz/?p=159</guid>
		<description><![CDATA[In Sencha 1.1.0 and 1.1.1 the numberfield is pretty useful, but on the iPhone it shows up a bit too short. A simple fix to this: .x-field.x-field-number { background-color: white!important; }<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.epiphanydigital.biz/2011/11/08/sencha-touch-numberfield-is-too-short/' addthis:title='Sencha Touch Numberfield is too Short ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>In Sencha 1.1.0 and 1.1.1 the <code>numberfield</code> is pretty useful, but on the iPhone it shows up a bit too short.  A simple fix to this:</p>
<pre class="prettyprint">
.x-field.x-field-number {
    background-color: white!important;
}
</pre>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.epiphanydigital.biz/2011/11/08/sencha-touch-numberfield-is-too-short/' addthis:title='Sencha Touch Numberfield is too Short ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.epiphanydigital.biz/2011/11/08/sencha-touch-numberfield-is-too-short/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sencha Touch: Scroll To Top After Leaving a Panel</title>
		<link>http://www.epiphanydigital.biz/2011/10/17/sencha-touch-scroll-to-top-after-leaving-a-panel/</link>
		<comments>http://www.epiphanydigital.biz/2011/10/17/sencha-touch-scroll-to-top-after-leaving-a-panel/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 20:13:39 +0000</pubDate>
		<dc:creator>eDigital Admin</dc:creator>
				<category><![CDATA[Mobile Web]]></category>
		<category><![CDATA[Sencha Touch]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.epiphanydigital.biz/?p=156</guid>
		<description><![CDATA[This doesn&#8217;t seem to work on Ext.List, but you can add a List with &#8220;scroll:false&#8221; as a child of an Ext.Panel with &#8220;scroll:true&#8221; and add this listener to the Ext.Panel.  Now the next time the user goes back to that panel, they are at the top of the list, form, content, etc. listeners          : { [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.epiphanydigital.biz/2011/10/17/sencha-touch-scroll-to-top-after-leaving-a-panel/' addthis:title='Sencha Touch: Scroll To Top After Leaving a Panel ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>This doesn&#8217;t seem to work on Ext.List, but you can add a List with &#8220;scroll:false&#8221; as a child of an Ext.Panel with &#8220;scroll:true&#8221; and add this listener to the Ext.Panel.  Now the next time the user goes back to that panel, they are at the top of the list, form, content, etc.</p>
<pre class="prettyprint">listeners          : {
  hide : function() {
    this.scroller.scrollTo({ x: 0, y: 0 })
  }
}</pre>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.epiphanydigital.biz/2011/10/17/sencha-touch-scroll-to-top-after-leaving-a-panel/' addthis:title='Sencha Touch: Scroll To Top After Leaving a Panel ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.epiphanydigital.biz/2011/10/17/sencha-touch-scroll-to-top-after-leaving-a-panel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

