How to show a simple form on home page of Sencha App??
How to show a simple form on home page of Sencha App??
Dear Everybody!!
I am a beginner to use Sencha Touch for app development..
And i tried to make a sample app first.
And I followed the tutorials taught by the learning center.
Following are the steps what i did..
First point is that I am using wamp localhost server on desktop for testing html file that would contain the application javascript file named 'index.js' under 'src' subdirectory of app root directory.
var form = new Ext.form.FormPanel({
items: [
{
xtype: 'textfield',
name : 'first',
label: 'First name'
},
{
xtype: 'textfield',
name : 'last',
label: 'Last name'
},
{
xtype: 'numberfield',
name : 'age',
label: 'Age'
}
]
});
Ext.regModel('User', {
fields: [
{name: 'first', type: 'string'},
{name: 'last', type: 'string'},
{name: 'age', type: 'int'}
]
});
var user = Ext.ModelMgr.create({
first: 'Ed',
last : 'Spencer',
age : 24
}, 'User');
form.load(user);
form.show();
}
});
and when i tried to display 'index.html' by using url 'http://localhost/datingapp/index.html' (datingapp is the root directory for my sample app), nothing is displayed on the page and only white screen..
I am at a loss how to get around with it..
Please help me!!
Looking forward to help from all of you..
Thanks in advance.