Archive for the ‘Know-how’ Category
Friday, September 18th, 2009
I've run across the following code in some of Ext 3.x examples:
this.mon(toolsUl, 'click', this.onClick, this);
Looks like event handler installation but what it really does anyway?
So I delved into the code and remembered ExtJS Conference and now it is clear to me.
Imagine you create a component and then you need to ...
Posted in Know-how | 7 Comments »
Thursday, September 17th, 2009
Posted in Know-how | 6 Comments »
Monday, September 7th, 2009
Posted in Know-how | 3 Comments »
Saturday, September 5th, 2009
Preface
My first idea how to the name this article was "Ext.Direct for Dummies" just because I feel as a one as long as Ext.Direct is concerned. I've first heard about it during Ext Conference in April and I think that it is one of the brightest ideas of Ext 3.x ...
Posted in Know-how | 7 Comments »
Tuesday, March 17th, 2009
You know, I'm not very big fan of factory functions, nevertheless, I'm aware of the fact that they may be necessary in some situations. Here is the file pattern that works (briefly tested).
Keep each factory function in a separate file name of which should be Namespace.Factory.functionName.js
// vim: ts=4:sw=4:nu:fdc=4:nospell
/*global Ext, MyNamespace ...
Posted in File Patters, Know-how | 2 Comments »
Saturday, March 14th, 2009
Important
If you have not already done so, study Writing a Big Application in Ext (Part 1) and Writing a Big Application in Ext (Part 2)before you read this article. It would be very hard, if not impossible, to understand concepts explained here before you fully understand the first and second ...
Posted in Know-how | 12 Comments »
Wednesday, March 4th, 2009
Suppose we want to remove all children of the node node:
while(node.firstChild) {
node.removeChild(node.firstChild);
}
That's all there is to it
Posted in Know-how | 6 Comments »
Monday, February 2nd, 2009
Important
If you have not already done so, study Writing a Big Application in Ext (Part 1) before you read this article. It would be very hard, if not impossible, to understand concepts explained here before you fully understand the first part.
Introduction
It has been almost one year since I have published ...
Posted in Know-how | 20 Comments »
Sunday, May 18th, 2008
We need to know all events that are fired by a component and in which order sometimes. It is easy to find out.
Let's say that the component in question has id my-comp. Load the page with the component, open Firebug, Console tab, and type:
Ext.util.Observable.capture(Ext.getCmp('my-comp'), console.info)
Now do some actions with the ...
Posted in Know-how | 4 Comments »
Sunday, May 18th, 2008
Historical Background
Most likely many of you who will read this article do not remember times of Fortran language and computers that were fed with tons of punch cards to have some some job done.
The main purpose of computers at that time was to compute something really; that is not true ...
Posted in Know-how | 23 Comments »