Archive for the ‘Know-how’ Category

Writing a Big Application in Ext (Part 2)

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 ...

Which events are fired?

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 ...

Events Explained

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 ...

Displaying 1:n Data in Grid

Sunday, May 11th, 2008

The Problem Imagine that you have a one-to-many relationship in your database, for example, you have table person in which you keep personal data (first, middle, last names, etc.) and you have table phone where you keep phone numbers (phone type, phone number). It is quite common to have person:phones, company:phones, order:items, ...

xtype defined

Friday, May 9th, 2008

Preface There has been a lot of confusion I have observed on the Ext Forums as to xtype. Some people ignore it fully, some think that it is what it is not. So I've decided to clarify it. Definition xtype is a symbolic name given to a class. Nothing less, nothing more. For ...

Extension or Plugin?

Monday, April 28th, 2008

Preface I believe that many of Ext users have already thought about adding some custom functionality that is not present in core Ext Library to a class. Something that is specific to their applications or not that specific so that others could also be interested in such feature. OK, we have the ...

How to get permissons of a file/directory

Tuesday, April 22nd, 2008

If you want to see permissions of a file or a directory in both human readable and octal notation issue this command: stat -c "%n %a %A" /tmp # replace /tmp with your file/dir The output is as follows: /tmp 1777 drwxrwxrwt

Array Overrides

Thursday, April 17th, 2008

On the way of development of my project I came to need to have set methods for javascript Array object especially intersection. Googling has shown up some but they were not LGPL, the licence what I need, so I've written them. The following override contains: Ext message box input type configuration Conditional Ext.overrideIf New ...

How to switch between Production and Development system

Tuesday, April 15th, 2008

Preface This article it the follow up of the Writing a Big Application in Ext post and it assumes that your application is written, at least to some degree, that way. It also assumes that the server side language is PHP 5.x, other users can take the idea and write the ...

Writing a Big Application in Ext (Part 1)

Saturday, April 12th, 2008

Preface I have decided to write this article for those users of Ext 2.x that have already grown up from having one HTML page with embedded script that creates one simple window or form, for those who are already decided that Ext is the way and for those who are fighting ...