I am new to Sencha Touch framework. I tried using the Documentation to make a demo application. I am trying to display records from a XML file and display it in table format. I am not able to understand what I am doing wrong. I am getting the Dock at the top of the screen and a blank page. Below is my code
Index.js
Ext.setup({
onReady: function(){
Ext.regModel('User', {
fields: ['id', 'name', 'email']
});
var store = new Ext.data.Store({
model: 'User',
proxy: {
type: 'ajax',
url : 'users.xml',
reader: {
type: 'xml',
record: 'user'
}
}
});
var list = new Ext.List({
fullscreen: true,
itemTpl : '{id} {name}',
grouped : true,
indexBar: true,
store: store
});
list.show();
var panel = new Ext.Panel({
fullscreen: true,
dockedItems:[
{
dock: 'top',
xtype: 'toolbar',
title: 'Users'
}
]
});
}
});
Users.xml
<?xml version="1.0" encoding="UTF-8"?>
<user>
<id>1</id>
<name>Ed Spencer</name>
<email>ed@sencha.com</email>
</user>
<user>
<id>2</id>
<name>Abe Elias</name>
<email>abe@sencha.com</email>
</user>
Please help me... Thanks in advance...