"communication failure" from data.store using httpproxy
trying to get a json object back into a store with this code:
Ext.onReady(function(){
formDef= [
{name: 'fieldLabel'},
{name: 'name'},
{name: 'value'},
{name: 'allowBlank'},
{name: 'width'},
{name: 'validationType'},
{name: 'fieldType'}
];
ds = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({ url: 'testData.js' }),
reader: new Ext.data.JsonReader({
root: 'testData',
totalProperty: 'totalCount',
id: 'testid'
},
formDef ),
remoteSort: true
});
ds.load();
});
and this is what is passed in:
{totalCount: 1,
testData: [
{ fieldLabel: "First Name", name: "FirstName", value: "ian" , allowBlank: false, width: 175 , validationType: false, fieldType: "TextField"}
]
}
but when i look at the error generated, it tells me "communication failure"
ive tried wrapping keys and values in quotes, and pretty much everything i can think of.
any ideas?
thanks in advance.
#If you have any other info about this subject , Please add it free.# |

