medley
23 Aug 2011, 6:23 AM
Hello,
I have a store defined like that :
Ext.define('EPplatosRegistry.store.Services', {
extend : 'Ext.data.Store',
model: 'EPplatosRegistry.model.Service',
storeId: 'servicesStore',
autoLoad: true,
proxy: {
type: 'rest',
url : 'http://localhost:8080/epplatos-registry-services/services/service',
appendId: true,
reader: {
type: 'xml',
root: 'services',
record : 'service'
},
writer : {
type: 'json',
root: 'service',
writeAllFields: true
}
}
....
In Firefox, the grid is well displayed. However, with Chrome, I get this message :
Uncaught TypeError: Cannot read property 'records' of undefined
In response header, the content-type is application/xml with Firefox . OK.
But with Chrome, the content-type is application/json. Not OK. And I don't know why.
Thanks for help
Medley
I have a store defined like that :
Ext.define('EPplatosRegistry.store.Services', {
extend : 'Ext.data.Store',
model: 'EPplatosRegistry.model.Service',
storeId: 'servicesStore',
autoLoad: true,
proxy: {
type: 'rest',
url : 'http://localhost:8080/epplatos-registry-services/services/service',
appendId: true,
reader: {
type: 'xml',
root: 'services',
record : 'service'
},
writer : {
type: 'json',
root: 'service',
writeAllFields: true
}
}
....
In Firefox, the grid is well displayed. However, with Chrome, I get this message :
Uncaught TypeError: Cannot read property 'records' of undefined
In response header, the content-type is application/xml with Firefox . OK.
But with Chrome, the content-type is application/json. Not OK. And I don't know why.
Thanks for help
Medley