45 lines
1.0 KiB
HTML
45 lines
1.0 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Cache-Control" content="must-revalidate, no-store, no-cache">
|
|
<title>Test Document</title>
|
|
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
|
|
<link rel="stylesheet" type="text/css" href="../app/stylesheet.css">
|
|
<style>
|
|
#demo {
|
|
width: 1200px;
|
|
height: 100%;
|
|
margin: 9px auto;
|
|
border: 2px solid blue;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<h2>The XMLHttpRequest Object</h2>
|
|
|
|
<button type="button" onclick="loadHTML()">Get LinkBoard</button>
|
|
<br><br>
|
|
<div id="demo"></div>
|
|
|
|
<script>
|
|
function loadHTML() {
|
|
var http = new XMLHttpRequest();
|
|
http.onreadystatechange = function() {
|
|
if (this.readyState == 4 && this.status == 200) {
|
|
myFunction(this);
|
|
}
|
|
};
|
|
http.open("GET", "../rpm/linkboard.html", true);
|
|
http.send();
|
|
}
|
|
function myFunction(data) {
|
|
document.getElementById("demo").innerHTML = data.responseText;
|
|
}
|
|
</script>
|
|
|
|
<script src="../app/functions.js"></script>
|
|
|
|
</body>
|
|
</html>
|