Hi
How do I setup the xmlreader to accepts this xml-code?
3 Men and a Baby
Three bachelors find themselves forced to take care of a baby...
Tom Selleck
Peter Mitchell
Steve Guttenberg
Michael Kellam
All works fine for the first level of data. However I can't get the cast into the record.
I get no script error. But when when I try to get the cast by:
store.getAt(0).get('cast');
I get nothing. Is it better to use JSON? Or how do I access my cast?
var store = new Ext.data.Store({
autoLoad: {params: {key: id}},
proxy: new Ext.data.HttpProxy({
url: basePath+'/action/movie/get',
method: 'GET'
}),
reader: new Ext.data.XmlReader({
totalRecords: "@totals",
record: "movie"
}, [
{ name: 'title', type: 'string' },
{ name: 'plot', type: 'string' },
{ name: 'cast', type: 'auto' }
])
})
I'm not using xml but I know that Animal does. He has written many posts helping with xml; you can try to search if the answer is not already in some of them or you can try to pm Animal.
Incompatibility with prototype.js 1.6
Problem interacting with flash application
|