Ho provato a modificare una parte del codice in questo modo:
codice:
var url = data.url;
//Start the XDR request
var id = Y.io(url, {
on: {
success: function(id) {
//On success get the feed data
var d = feeds[trans[id]]
//Node reference
//inner = d.mod.one('div.inner'),
//Parse the JSON data
//oRSS = Y.JSON.parse(data.responseText),
var oRSS = feeds.url
html = 'Test';
//Did we get data?
Y.each(oRSS, function(v) {
html += '[*]' + v.title + '';
});
//Set the innerHTML of the module
inner.set('innerHTML', '<ul>' + html + '[/list]');
if (Y.DD.DDM.activeDrag) {
//If we are still dragging, update the proxy element too..
var proxy_inner = Y.DD.DDM.activeDrag.get('dragNode').one('div.inner');
proxy_inner.set('innerHTML', '<ul>' + html + '[/list]');
}
},
failure: function(id, data) {
//Something failed..
var d = feeds[trans[id]],
//Node reference
inner = d.mod.one('div.inner'),
html = '<ul>[*]Feed failed to load..[/list]';
inner.set('innerHTML', html);
if (Y.DD.DDM.activeDrag) {
//If we are still dragging, update the proxy element too..
var proxy_inner = Y.DD.DDM.activeDrag.get('dragNode').one('div.inner');
proxy_inner.set('innerHTML', html);
}
}
}
});
Mi restituisce il messaggio: Feed failed to load..
Vi posto il link dove sto facendo le prove:
Link demo