changeset 11:899900981cf8 draft

modified
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Fri, 21 Sep 2012 17:38:11 +0900
parents 6fdf1b084a00
children 29d39f0e7ee7
files post.html postscript.js
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/post.html	Fri Sep 21 15:06:14 2012 +0900
+++ b/post.html	Fri Sep 21 17:38:11 2012 +0900
@@ -11,7 +11,7 @@
       <input type="text" name="text">
       <input type="submit" onclick="stringPost(); return false" value="send">
     </form>
-    <div id="outputdiv" style="">
+    <div id="outputdiv" style="background-color:red; width:150px; ">
 
     </div>
 
--- a/postscript.js	Fri Sep 21 15:06:14 2012 +0900
+++ b/postscript.js	Fri Sep 21 17:38:11 2012 +0900
@@ -19,6 +19,6 @@
     obj.abort();
     obj.open('POST',URL, true);
     obj.setRequestHeader('Accept','application/json');
-//    obj.setRequestHeader('Content-Type','application/json');
+    obj.setRequestHeader('Content-Type','application/json');
     obj.send();
 }