Archive for April, 2008

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

New Examples

Friday, April 11th, 2008

I've uploaded some new examples to Saki's Ext Examples page. As of now there should be the following examples: Component Communication Grid In An Inactive Tab Simplest Border Layout Keeping An Accordion State 3 Columns Layout With CSS Fieldsets In 2 Columns Layout Enjoy!

Simplest 3 Columns Layout with CSS

Tuesday, April 8th, 2008

After experimenting with Designing a 3 columns web page using TableLayout I have came with the solution that is, IMO, simplest possible: 3 Columns Layout Example #ct-wrap { text-align:center; ...

How to center an element in quirks mode

Tuesday, April 8th, 2008

It has been my problem because I needed to use quirks mode due to Ext not playing well in standards compliant mode and still have an element, a container with fixed width, centered in the browser's window working cross-browser. Standard approach is to use css: #ct { width: 960px; ...

Designing a 3 columns web page using TableLayout

Saturday, April 5th, 2008

See also: Simplest 3 Columns Layout with CSS Design Goals I have decided to re-design my webpage because I used some nested floating divs and I started to lose track of the hierarchy and css rules assigned to them. The design goals were: Fixed width content area always displayed centered in the ...

How to build a Tree from static data

Friday, April 4th, 2008

Ext.BLANK_IMAGE_URL = '../ext/resources/images/default/s.gif'; Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); var children = [{ text:'First Level Child 1' ,children:[{ text:'Second Level Child 1' ...