summaryrefslogtreecommitdiff
path: root/ws2a/bugsload.js
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-05-09 14:08:56 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-05-09 14:08:56 -0400
commit5f8b897a3ba80dc4bd82a13372ae8b8a279930f2 (patch)
tree77c71d4475fe0c8e1420e03831af09d7bfe0b513 /ws2a/bugsload.js
parentc0a653dd8de601012deafde63ba6ad114499fe5f (diff)
downloadwebpage-5f8b897a3ba80dc4bd82a13372ae8b8a279930f2.tar.gz
webpage-5f8b897a3ba80dc4bd82a13372ae8b8a279930f2.tar.bz2
webpage-5f8b897a3ba80dc4bd82a13372ae8b8a279930f2.zip
Migrateing to nicer looking stuff
Diffstat (limited to 'ws2a/bugsload.js')
-rw-r--r--ws2a/bugsload.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/ws2a/bugsload.js b/ws2a/bugsload.js
new file mode 100644
index 0000000..d1662a9
--- /dev/null
+++ b/ws2a/bugsload.js
@@ -0,0 +1,10 @@
+function loadLastBugs() {
+ var xhttp = new XMLHttpRequest();
+ xhttp.onreadystatechange = function() {
+ if (xhttp.readyState == 4 && xhttp.status == 200) {
+ document.getElementById("bugstable").innerHTML = xhttp.responseText;
+ }
+ };
+ xhttp.open("GET", "/cgi-bin/bugsdata.cgi", true);
+ xhttp.send();
+}