Subject: | Problem on IE - with patch |
onreadystatechange is set too late.
Subject: | cgi-ajax-ready.patch |
--- Ajax.pm.orig 2006-02-16 09:32:49.000000000 -0500
+++ Ajax.pm 2006-02-16 09:33:57.000000000 -0500
@@ -747,9 +747,12 @@
pjx.prototype.send2perl=function() {
var r = this.r;
- var dt = this.dt;
+ var dt = this.dt;
var url=this.url;
var postdata;
+
+ r.onreadystatechange=handleReturn;
+
if(this.method=="POST"){
var idx=url.indexOf('?');
postdata = url.substr(idx+1);
@@ -763,7 +766,6 @@
if(this.method=="GET"){
r.send(null);
}
- r.onreadystatechange=handleReturn;
};
handleReturn = function() {