# HG changeset patch # User Nobuyasu Oshiro # Date 1348207574 -32400 # Node ID 6fdf1b084a00f6993671eab3bc0be312986e10d0 # Parent 5068e7dc31c115916e2a152c69b4545ed8a92695 modified postscript.js diff -r 5068e7dc31c1 -r 6fdf1b084a00 post.html --- a/post.html Fri Sep 21 00:57:08 2012 +0900 +++ b/post.html Fri Sep 21 15:06:14 2012 +0900 @@ -4,11 +4,16 @@ + +
- +
+ +
diff -r 5068e7dc31c1 -r 6fdf1b084a00 postscript.js --- a/postscript.js Fri Sep 21 00:57:08 2012 +0900 +++ b/postscript.js Fri Sep 21 15:06:14 2012 +0900 @@ -12,15 +12,13 @@ var obj = XMLRequest(); obj.onreadystatechange = function() { if (obj.readyState == 4 && obj.status == 200) { - document.getElementById("textarea").value = obj.responseText; + document.getElementById("outputdiv").textContent = obj.responseText; } } var URL = 'http://localhost:9000/db/data/node'; obj.abort(); obj.open('POST',URL, true); - + obj.setRequestHeader('Accept','application/json'); +// obj.setRequestHeader('Content-Type','application/json'); obj.send(); - var resStr = obj.responseText; }