Files
hiring-test-one/test/fixture/ajax.html

19 lines
418 B
HTML
Raw Normal View History

2014-06-16 22:42:21 +01:00
<!DOCTYPE html>
<head>
<title>Ajax test</title>
</head>
<body>
<h1>README</h1>
<h2>loaded in the "Ajax" style</h2>
<pre id="readme"></pre>
<script>
var $ = document.querySelector.bind(document);
var req = new XMLHttpRequest();
2015-11-13 11:42:16 +00:00
req.open("get", "http://localhost:8000/big-file.txt", true);
2014-06-16 22:42:21 +01:00
req.onload = function(){
$("#readme").textContent = this.responseText;
}
req.send()
</script>
2015-11-13 11:42:16 +00:00
</body>