1 function eowOut(output) {
2 var t = document.createTextNode(output);
3 var p = document.createElement("p");
5 dojo.byId("output").appendChild(p);
10 // The following URL must match that used to test the server.
11 url: "/eow/static/ajax.txt",
12 handleAs: "javascript",
14 timeout: 5000, // Time in milliseconds
16 // The LOAD function will be called on a successful response.
17 load: function(response, ioArgs) {
18 console.log(response);
22 // The ERROR function will be called in an error case.
23 error: function(response, ioArgs) {
24 console.error("HTTP status code: ", ioArgs.xhr.status);