Jump to content

kneppdr

Members
  • Posts

    2
  • Joined

  • Last visited

kneppdr's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Answer: Location files was not in the data set. This held the record.
  2. The following script only reads the first 29 records. Even when I hard code the number of records it only reads 29 records. I have checked the xml data file for problems with the next record but an not find problems. <body><script>if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); }else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }xmlhttp.open("GET","education60.xml",false);xmlhttp.send();xmlDoc=xmlhttp.responseXML;document.write("<table id='t01'><tr><th></th><th>Date</th><th>Meeting Name</th>><th>Starting Time</th>><th>Location</th></tr>");var x=xmlDoc.getElementsByTagName("Meeting");for (i=0;i<x.length;i++) { document.write("<tr><td>"); document.write(i+1); document.write("</td><td>"); document.write(x.getElementsByTagName("StartDate")[0].childNodes[0].nodeValue); document.write("</td><td>"); document.write(x.getElementsByTagName("MeetingName")[0].childNodes[0].nodeValue); document.write("</td><td>"); document.write(x.getElementsByTagName("StartTime")[0].childNodes[0].nodeValue); document.write("</td><td>"); document.write(x.getElementsByTagName("Location")[0].childNodes[0].nodeValue); document.write("</td></tr>"); }document.write("</table>");</script> Any ideas? Thx. education60.xml
×
×
  • Create New...