Index: trunk/webapps/cptms/js/cmsLayer.js
===================================================================
--- trunk/webapps/cptms/js/cmsLayer.js	(revision 400)
+++ trunk/webapps/cptms/js/cmsLayer.js	(revision 413)
@@ -159,15 +159,15 @@
         jsonstring = JSON.stringify(Object.values(messageDict)); //Can't use these in GET parameter  ,null,4);
         outString = "{\"data\":" + jsonstring + "}";
-        console.log("outString = " + outString);
-        var xhttp = new XMLHttpRequest();
-        xhttp.open("GET", "../cgi-bin/saveCMSmessage.py?msg=" + outString, true);
-        xhttp.send();
-        console.log("status code: " + xhttp.status);
-        // Using POST might be a better idea ... haven't tried this yet
-        //      var xhr = new XMLHttpRequest();
-        //      xhr.open("POST", "/cgi-bin/saveCMSmessage.py?", true);
-        //      xhr.setRequestHeader('Content-Type', 'application/json; charset=UTF-8');
+        //console.log("outString = " + outString);
+        //var xhttp = new XMLHttpRequest();
+        //xhttp.open("GET", "../cgi-bin/saveCMSmessage.py?msg=" + outString, true);
+        //xhttp.send();
+        //console.log("status code: " + xhttp.status);
+        // Using POST to send the data 
+        var xhr = new XMLHttpRequest();
+        xhr.open("POST", "../cgi-bin/saveCMSmessage.py", true);
+        xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
         // send the collected data as JSON
-        //      xhr.send(JSON.stringify(messageList));
+        xhr.send("msg="+outString);
     }
 
