PDA

View Full Version : Xml Reader - FeeD



djeffersonx
2 Sep 2011, 7:06 AM
I tried to use the ScriptTagProxy, but without success ..

When I run with only the following passage, generates no error in the console .. so I guess it works ... the problem is when I put the XmlReader, Fields,RowSelectionModel ... I think at least if someone can help me thank you very much...

Código:


var store = new Ext.data.Store({
ScriptProxy: new Ext.data.ScriptTagProxy({
url:'http://www.virtuem.com.br/rss.html'
}),
});



The following code generates an error in the console's Chrome: UncaughtSyntaxError: Unexpected identifier

Código:


Ext.onReady(function(){
var store = new Ext.data.Store({
ScriptProxy: new Ext.data.ScriptTagProxy({
url:'http://www.virtuem.com.br/rss.html'
}),

fields:[{name: 'title', mapping: 'item > title'}, 'category', 'link', 'description','pubDate' ],

var reader: new Ext.data.XmlReader({
// ##### O Chrome Acusa Erro AQUI!!! ########
record: 'item'
},[{name:'title', mapping: 'item > title'}, 'author', {name:'pubDate', type:'date'}, 'link', 'description', 'category'])

}), sm: new Ext.grid.RowSelectionModel({singleSelect: true}), viewConfig: { forceFit: true }, split: true;
});





Thank you for your attention! Good morning everyone and success.! [] 's