A little bit different from existing Ext.ux.form.field.DateTime
Recently, one of my clients needed to have a date/time field to update/create their records. So I googled a bit and found a great sample/extension for my existing project. Yes, it is Ext.ux.form.field.DateTime. However the existing extension does not have validation function so I just made a few changes on it. /** * @auther Elvis Hsu * @class Ext.ux.form.field.DateTime * @extends Ext.form.FieldContainer * * inspired by http://www.sencha.com/forum/showthread.php?134345-Ext.ux.form.field.DateTime * This class is used for user input */ Ext.define('Ext.ux.form.field.DateTime', [...]
by Elvis Hsu No comments Read More
Minify + GZip (Deflate) your server response
Today, I was browsing around the web and found some interesting articles which are related to minify extjs on the fly. Well, if I can minify the server response and deflate it, that would be even faster to deliver to client's browser? So I decided to give it a go. Bang~ It is faster than just minify the content. But so far I just tested with Apache server as it is most used http server in my projects. I just added the following code in my .htaccess file # compress text, html, javascript, css, xml: AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType [...]
by Elvis Hsu No comments Read More
Minify ExtJs on the fly
I have been developing some projects with ExtJs for a while and also created some plubg-ins and extensions for these projects. Recently, I found out that I have so many *.js and *.css codes and they are somehow too fat for some slow band width users. Well, I decided to google some solutions to minify my js and css codes. Luckily, I found minify and I am loving it. However, most of my ExtJs plug-ins and extensions are called by Ext.require and it is somehow complicated to override the Ext.Loader.require so I googled again... Ha... the answer came up from here (Using .htaccess [...]
by Elvis Hsu 1 comment Read More

CryptoDonatex