Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function loadCourses(){
- var xhttp = new XMLHttpRequest();
- var xhttp2 = new XMLHttpRequest();
- xhttp.onreadystatechange = function(){
- if(this.readyState == 4 && this.status == 200){
- document.getElementById("courses").innerHTML += this.responseText;
- }
- }
- xhttp2.onreadystatechange = function(){
- if(this.readyState == 4 && this.status == 200){
- document.getElementById("studentsTable").innerHTML += this.responseText;
- }
- }
- xhttp.open("GET","http://localhost/Ateneo/getCourses.php",true);
- xhttp2.open("GET","http://localhost/Ateneo/getStudents.php",true);
- xhttp.send();
- xhttp2.send();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement