|
ok ci sono riuscito
ho fatto così
for (i=0; i<localita.length; i++) {
// Mostra +="<select onChange=javascript:stopStart("+ovest(0).getAttribute('lat')+","+ovest.item(0).firstChild.data+ ","+zoom.item(0).firstChild.data +",this.value)>";
Mostra +="<select onChange=javascript:stopStart('0','0',"+zoom.item(0).firstChild.data +",this.value)>";
var num= localita[i].getElementsByTagName('nomeloc');
for (j=0; j<num.length; j++) {
// alert(j);
// alert(localita[i].getElementsByTagName('nomeloc').item(j).firstChild.nodeValue);
Mostra += "<option value='"+localita[i].getElementsByTagName('nomeloc').item(j).firstChild.nodeValue+"'>"+localita[i].getElementsByTagName('nomeloc').item(j).firstChild.nodeValue+"</option>";
}
Mostra +="</select>";
comboloc.innerHTML = Mostra;
// alert(localita[i].getElementsByTagName('nome').item(0).firstChild.nodeValue);
}//chiudo for localita.length
|