Updated files

This commit is contained in:
RobinNixon
2021-04-18 11:18:28 +01:00
parent aefe77f6e8
commit f63a81074d
187 changed files with 1694 additions and 254 deletions
+27
View File
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html> <!-- urlget.html -->
<head>
<title>Asynchronous Communication Example</title>
</head>
<body style='text-align:center'>
<h1>Loading a web page into a DIV</h1>
<div id='info'>This sentence will be replaced</div>
<script>
let nocache = "&nocache=" + Math.random() * 1000000
let XHR = new XMLHttpRequest()
XHR.open("POST", "http://127.0.0.1/18/urlget.php?url=news.com" + nocache, true)
XHR.setRequestHeader("Content-type", "application/x-www-form-urlencoded")
XHR.send()
XHR.onreadystatechange = function()
{
if (this.readyState == 4 && this.status == 200)
{
document.getElementById("info").innerHTML = this.responseText
}
}
</script>
</body>
</html>