kneppdr Posted September 14, 2015 Share Posted September 14, 2015 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 Link to comment Share on other sites More sharing options...
kneppdr Posted September 14, 2015 Author Share Posted September 14, 2015 Answer: Location files was not in the data set. This held the record. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now