Hi all,
I have a problem with this code, I use the old version of F7, the problem is that I see in my list always the same result, all the row in my list show me only the last data of my xml:
$$.ajax({
url: 'http://...',
dataType : 'xml',
success: function(data) {
resp = jQuery.parseJSON(data);
for (var i = 0; i < resp.network.stations.length; i++) {
nome = resp.network.stations[i].name;
}
var myList = myApp.virtualList('.list-block.virtual-list', {
items: data,
renderItem: function (index, item) {
return '<li class="item-content">' +
'<div class="item-inner">' +
'<div class="item-title-row">' +
'<div class="item-title">' + nome + '</div>' +
'</div>' +
'</div>' +
'</li>';
},
});
}
});
thank you all