aboutsummaryrefslogtreecommitdiffstats
path: root/WebContent/client/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'WebContent/client/client.js')
-rw-r--r--WebContent/client/client.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/WebContent/client/client.js b/WebContent/client/client.js
index 9cc3bc8f48..800886bb95 100644
--- a/WebContent/client/client.js
+++ b/WebContent/client/client.js
@@ -479,7 +479,7 @@ ITMillToolkitClient.prototype.processVariableChanges = function (repaintAll,nowa
// Build variable change query string
var changes = "";
for (var i in this.variableStates) {
- changes += i + "=" + this.variableStates[i] + "&";
+ changes += i + "=" + encodeURIComponent(this.variableStates[i]) + "&";
}
// Build up request URL
@@ -492,8 +492,8 @@ ITMillToolkitClient.prototype.processVariableChanges = function (repaintAll,nowa
var changeListener = this.createRequestChangeListener(this,activeRequest);
activeRequest.onreadystatechange = changeListener;
activeRequest.open("POST",url, true);
- activeRequest.setRequestHeader('Content-Type',
- 'application/x-www-form-urlencoded')
+ activeRequest.setRequestHeader('Content-Type',
+ 'application/x-www-form-urlencoded; charset=UTF-8');
activeRequest.send(changes);
}
@@ -1153,8 +1153,8 @@ ITMillToolkitClient.prototype.getXMLtext = function(xml) {
ITMillToolkitClient.prototype.changeVariable = function (name, value, immediate, nowait) {
this.debug("variableChange('" + name + "', '" + value + "', " + immediate + ");");
- this.variableStates[name] = escape(value);
-
+ this.variableStates[name] = value;
+
if (immediate)
this.processVariableChanges(false,nowait);
}