aboutsummaryrefslogtreecommitdiffstats
path: root/WebContent
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2006-12-05 07:17:04 +0000
committerMarc Englund <marc.englund@itmill.com>2006-12-05 07:17:04 +0000
commit2a9951f18d0758fe61782338955a317b4339a373 (patch)
treed086d549888f698072fcd773a56dd12b70ae3540 /WebContent
parent386c8223c3a463ca0cdf7adf2bb4667c44739bee (diff)
downloadvaadin-framework-2a9951f18d0758fe61782338955a317b4339a373.tar.gz
vaadin-framework-2a9951f18d0758fe61782338955a317b4339a373.zip
#105: escape() -> encodeURIComponent() and encoding explicitly UTF-8
svn changeset:142/svn branch:toolkit
Diffstat (limited to 'WebContent')
-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);
}