Estoy tratando de tomar datos del sitio web de mi universidad y estoy usando javascript por completo. ¿Hay alguna manera de tomar datos en cada fila y agregarlos a la tabla en mi sitio web? Estos datos son necesarios Este es el sitio web https://banner.kfu.edu.sa:7710/KFU/ws?p_trm_code=144310&p_col_code=09&p_sex_code=11
Cuando traté de hacerlo usando mi código My javascript
Este es el resultado que obtengo Resultado
Mi código
<table id="myTable" style="width:100%" > <tr> <th>Course name</th> <th>Section</th> <th>Time</th> <th>Instructor name</th> <th>CRN</th> </tr> </table> </div> <script> var table = document.getElementById("myTable"); var xhr = new XMLHttpRequest(); xhr.open("Get","https://banner.kfu.edu.sa:7710/KFU/ws?p_trm_code=144310&p_col_code=09&p_sex_code=11"); xhr.responseType = "document"; xhr.onload = function(){ if(xhr.readyState == 4 && xhr.status==200){ //copies the entire xml of the web page var response = xhr.responseXML.querySelectorAll(".normaltxt"); var row = table.insertRow(1); response.forEach(function(numbers) { var courseNameCell = row.insertCell(0); courseNameCell.innerHTML = response.table; }) console.log(response); } }; xhr.onerror = function(){ console.error(xhr.status, xhr.statusText); } xhr.send(); </script>