+2006-12-31 Igor Zelmanovich <igorz@mainsoft.com>
+
+ * callback.js: fixed: support IE7, encodeURIComponent is used to
+ encode form.
+
2006-09-14 Igor Zelmanovich <igorz@mainsoft.com>
* WebUIValidation_2.0.js: added new file
for (n=0; n<len; n++) {
var elem = theForm.elements [n];
if (qs.length > 0) qs += "&";
- qs += elem.name + "=" + escape (elem.value);
+ qs += elem.name + "=" + encodeURIComponent (elem.value);
}
return qs;
}
if (typeof XMLHttpRequest != "undefined") {
httpPost = new XMLHttpRequest ();
- httpPost.addEventListener ("load", function () { callback (httpPost);}, false );
} else {
if (axName != null)
httpPost = new ActiveXObject (axName);
if (httpPost == null)
throw new Error ("XMLHTTP object could not be created.");
}
- httpPost.onreadystatechange = function () { if (httpPost.readyState == 4) callback (httpPost); };
}
+ httpPost.onreadystatechange = function () { if (httpPost.readyState == 4) callback (httpPost); };
httpPost.open ("POST", url, true); // async
httpPost.setRequestHeader ("Content-Type", "application/x-www-form-urlencoded");