Ho provato ma mi restituisce il messaggio di errato caricamento:
"Feed failed to load.."
codice:
var idLiv = data.id
//Start the XDR request
var id = Y.io(id, {
//method: 'GET',
//x//dr: {
// use:'flash'
//},
on: {
success: function(id) {
//On success get the feed data
var d = feeds[trans[id]]
//Node reference
inner = d.mod.one('div.inner'),
html = data.article;
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);
}
},
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);
}
}
}
});
//Keep track of the transaction
feeds[data.id].trans = id;
feeds[data.id].mod = mod;
trans[id.id] = data.id;