1.1 --- a/examples/Common/VerySimple/Resources/scripts/XSLForms.js Thu Aug 11 19:11:22 2005 +0000
1.2 +++ b/examples/Common/VerySimple/Resources/scripts/XSLForms.js Thu Aug 11 19:11:58 2005 +0000
1.3 @@ -17,6 +17,7 @@
1.4
1.5 // Load the remote document with the given parameters sent as text in the request body.
1.6
1.7 + xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
1.8 xmlhttp.send(requestBody);
1.9
1.10 // Parse the result document.
1.11 @@ -73,12 +74,12 @@
1.12 for (var opt = 0; opt < fieldNodes[v].options.length; opt++) {
1.13 if (fieldNodes[v].options[opt].selected) {
1.14 fieldValue = fieldNodes[v].options[opt].value;
1.15 - requestBody += ("\r\n" + fieldName + "=" + fieldValue);
1.16 + requestBody += ("&" + fieldName + "=" + fieldValue);
1.17 }
1.18 }
1.19 } else {
1.20 fieldValue = fieldNodes[v].value;
1.21 - requestBody += ("\r\n" + fieldName + "=" + fieldValue);
1.22 + requestBody += ("&" + fieldName + "=" + fieldValue);
1.23 }
1.24 }
1.25