View Full Version : Help me:Ext.form.ComboBox fail to load data

20 Aug 2009, 7:03 PM
My code is as follows:

var store = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({url:'test.txt'}),
reader: new Ext.data.ArrayReader({}, [
{name: 'value'},
{name: 'text'}

var combo = new Ext.form.ComboBox({
store: store,
emptyText: 'Please select',
mode: 'remote',
triggerAction: 'all',
valueField: 'value',
displayField: 'text',
applyTo: 'combo'

test.txt is as follow:

When I run the code, the data can't be loaded normally to display in the combobox.

Who can help me?