Got a small issue here I cannot seem to figure out,
I programmaticaly add items to my listview from a textfile. this all is going well except for one thing, the divider is adding the same dividers again.
Here is my JQUERY (in my document ready):
var ContactList = 'data/contactlist.txt';
$.get(ContactList, function(data) {
var lines = data.split(",");
var content = "";
$.each(lines, function(n, elem) {
if(elem != "" && elem!=null)
{
content += "<li><a href='#contactPopup' data-rel='popup'>" + elem + "</a></li>";
//alert(elem);
}
});
$("#myContactList").append(content).listview("refresh");
});
wich gives me: https://drive.google.com/file/d/0Bxw7EGXkfUrKSjhtT1RsaERSNGs/edit?usp=sharing
As you can see, Divider "A" has been added twice, its creating a new divider for each person..