rem: switch (self.xmlhttp.readyState){ case 1: self.onLoading(); break; case 2: self.onLoaded(); break; case 3: self.onInteractive(); break; case 4: self.response = self.xmlhttp.responseText; self.responseXML = self.xmlhttp.responseXML; self.onCompletion(); if(self.execute){ self.runResponse(); } if (self.elementObj) { self.elementObj.innerHTML = self.response; } break; } }; 
add: switch (self.xmlhttp.readyState){ case 1: self.onLoading(); break; case 2: self.onLoaded(); break; case 3: self.onInteractive(); break; case 4: self.response = self.xmlhttp.responseText; self.responseXML = self.xmlhttp.responseXML; self.responseStatus[0] = self.xmlhttp.status; self.responseStatus[1] = self.xmlhttp.statusText; self.onCompletion(); if(self.execute){ self.runResponse(); } if (self.elementObj) { var elemNodeName = self.elementObj.nodeName; elemNodeName.toLowerCase(); if (elemNodeName == "input" || elemNodeName == "select" || elemNodeName == "option" || elemNodeName == "textarea"){ self.elementObj.value = self.response; } else { self.elementObj.innerHTML = self.response; } } self.URLString = ""; break; } }; 
context:       this.xmlhttp.onreadystatechange = function() {        switch (self.xmlhttp.readyState){          case 1: // Loading.            self.onLoading();          break;          case 2: // Loaded.            self.onLoaded();          break;          case 3: // Interactive - is called every 4096 bytes.. pretty much just tells you it's downloading data.            self.onInteractive();          break;          case 4: // Completed.            self.response = self.xmlhttp.responseText;             self.responseXML = self.xmlhttp.responseXML;            self.onCompletion();            if(self.execute){ self.runResponse(); }            if (self.elementObj) {               self.elementObj.innerHTML = self.response;            }          break;        }      };
meta: 4895	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4895/95657bc6773c23c04843d51d5224df0bbd5191f0/tw-sack.js/buggy/lib/scripts/tw-sack.js