i got this code with JS, parsing from XML, my Output displays NaN in Chrome, FF, IE… and I don’t know why, wether where it comes from. All my XML fields are Chars, thats why i use .text() function…
function parse(document){
$(document).find("EMaDetails").each(function(){
$("#main").append(
'<table>'
+'<tr>'+'<td>'
+$(this).find('Nachn').text()+', '
+$(this).find('Vorna').text()
+'</td>'+'</tr>'+
+'<tr>'+'<td>'
+$(this).find('Detail1').text()+', '
+$(this).find('Detail2').text()
+'</td>'+'</tr>'
+'</table>'
);
});
}
And the Result is like this:
NaN
Lastname1, Firstname1
Detail1, Detaila1
NaN
Lastname2, Firstname2
Detail2, Detaila2
Thanks
remove the + at the and of this line(the next line starts with a + too)