- var t = document.createTextNode(output);
- var p = document.createElement("p");
- p.appendChild(t);
- dojo.byId("output").appendChild(p);
+ $("#output").append("<pre>" + output + "</pre>");
+ $("input")[0].scrollIntoView(false);
+}
+
+function get_next_update() {
+ $.ajax({
+ url: "/eow/update",
+ dataType: "script",
+ success: function(data, textStatus) {
+ console.log(textStatus + " " + data);
+ },
+ error: function(xhr, textStatus, error) {
+ if (textStatus == "timeout") {
+ xhr.abort();
+ next();
+ }
+
+ console.error("HTTP status code: ", xhr.status);
+ }
+ });