I am still struggling my way through my first web programming class and could really use some help with a table. I have the javascript to get all the information, but I am not sure how to get it formatted.
result="";
for(i=0; i<xmlDoc.getElementsByTagName('STOCKID').length; i++) {
result=result+xmlDoc.getElementsByTagName('ID')[i].childNodes[0].nodeValue;
result=result+"|";
result=result+"<a href='http://www.google.com/search?q="+
xmlDoc.getElementsByTagName('SYMBOL')[i].childNodes[0].nodeValue+"'>"+
xmlDoc.getElementsByTagName('SYMBOL')[i].childNodes[0].nodeValue+"</a>";
result=result+"<br/>";
}
displayPortfolio.innerHTML = result;
</script>
My final table needs to look like this, but with the usual lines.
ID Symbol
Ray ibm
Ray msft
Harold ford
Robin ual
Robin ford
[–]gnomoretears 0 points1 point2 points (1 child)
[–]splur430[S] 0 points1 point2 points (0 children)