Archives

May 2011

Dynamic Sencha Touch Forms : Part 3 : Adding form fields on the fly

Sencha Touch,Web Design & Development Blog 6 Comments

After a comment from Brandon looking for advice on adding form fields on the fly, I thought it would be worth a mini blog article to explain it.

What we want to do is add a button to our form that, when tapped, will add a new field to the form. By adding this functionality we can allow users to enter arbitrary amounts of data. This can be applied to situations such as, when entering ingredients for a recipe (we don’t want to restrict them to a set number, nor do we want to prepopulate the form with too many fields); adding qualifications to your CV (not everyone has the same number of qualifications so how do we allow them to enter the right number?).

(more…)

Dynamic Sencha Touch Forms : Part 2 : Dynamically loading Select Fields based on previously selected values

Sencha Touch,Web Design & Development Blog 17 Comments

Firstly, apologies for the lateness of this follow up post!

The aim of this post is to describe how we can use Select Fields (combo-boxes) to create a form whose options change based on the previous selections made by the user. So basically when a user makes a selection from the first Select Field we want the next one’s possible values to change, reflecting the choice made.

The scenario we will use is a simple form where the User can choose a Country and then a City from two Select Fields which could be used in a form where a User completes their Address.

(more…)

20 Things To Avoid/Do When Getting Started With Ext JS & Sencha Touch

Development Tips,Ext JS,Web Design & Development Blog 15 Comments

When learning a new topic people often make the same mistakes and follow the same bad practices as each other. It usually follows by them realising that what they’ve been doing for a few days/weeks/months is a bad way of doing it and wondering how they didn’t realise earlier.

In this article we’ve put together a (non-exhausted!) list of a few of the things we’ve picked up and things we recommend you do when starting out with Ext JS (hey, even you veteran developers might learn something new!). These things have come up through our own experience; through seeing and replying to the same issues on the forums again and again; and just general good programming practices.

Hopefully this will jump you a few rungs up the ladder of learning Ext JS and help you avoid falling into the usual traps!

(more…)