rem: onLoad(this, response, this._responseContentType); 
add: onLoad.call(this, this, response, this._responseContentType); 
context: 	_onReadyStateChange: function() {		var req = this._request;		if (!req) {			f_core.Info(f_httpRequest, "Request has been canceled !");			return;		}				var url = this._url;				switch (req.readyState) {			// UNINITIALIZED, Object created but not initialized, open not called			case 0:			default: 				return;				// LOADING, Object created, send not called			case 1: {				f_core.Profile("f_httpRequest.stateChange.loading("+url+")");				if (this._initialized) {					return;				}				this._initialized=true;								var onInit=this._listener.onInit;				if (typeof(onInit)=="function") {					if (!this._noLog) {						f_core.Info(f_httpRequest, "Call onInit for url="+url+" . (+"+(new Date().getTime()-this._date)+"ms)");					}					try {						onInit(this);					} catch (ex) {						f_core.Error(f_httpRequest, "Exception when calling onInit for url="+url+".\n"+onInit,ex);					}				}				return;			}				// LOADED, Send called, status and headers available but no response			case 2: {				f_core.Profile("f_httpRequest.stateChange.loaded("+url+")");				if (f_core.IsInternetExplorer()) {					// Inutile de tester qq chose !					return;				}				if (this._error) {					// On peut continuer a recevoir des infos, meme si il y a eu des problemes !					return;				}								var status;				var statusText;				try {					status = req.status;					if (status==f_httpRequest.OK_STATUS) {						return;					}										statusText=req.statusText;									} catch(ex) {					f_core.Error(f_httpRequest, "Can not get status of request !", ex);				}								this._callError(status, statusText);				return;			}				// INTERACTIVE Some data received, partial results in responseBody/Text			case 3: {				if (this._error) {					// On peut continuer a recevoir des infos, meme si il y a eu des problemes !					return;				}								var len = 0;				var response = null;				var contentType = null;				try {					len = req.getResponseHeader("Content-Length");									} catch(ex) {					len = NaN;				}				try {					contentType=req.getResponseHeader(f_httpRequest.HTTP_CONTENT_TYPE);					if (contentType) {						this._responseContentType=contentType;					}				} catch (ex) {				}								if (!contentType || contentType.indexOf(f_httpRequest.TEXT_XML_MIME_TYPE)<0) {					try {						response = req.responseText;					} catch(ex) {					}				}								var onProgress=this._listener.onProgress;				if (typeof(onProgress)=="function") {									if (!this._noLog) {						f_core.Info(f_httpRequest, "Call onProgress for url="+url+" . (+"+(new Date().getTime()-this._date)+"ms)");					}					try {						onProgress(this, response, len, contentType);					} catch (ex) {						f_core.Error(f_httpRequest, "Exception when calling onProgress method for url='"+url+"'.\n"+onProgress, ex);					}				}								return;			}				// COMPLETE, All data received headers and status updated			case 4: {				f_core.Profile("f_httpRequest.stateChange.complete("+url+")");								if (this._error) {					// On peut continuer a recevoir des infos, meme si il y a eu des problemes !					return;				}				try {					this._responseContentType=req.getResponseHeader(f_httpRequest.HTTP_CONTENT_TYPE);									} catch (x) {					// Il peut y avoir des cas ou la reponse n'est pas prete car c'est un RELOAD forcé par l'utilisateur !					return;				}							var response=null;				if (this._responseContentType && this._responseContentType.indexOf(f_httpRequest.TEXT_XML_MIME_TYPE)>=0) {					this._response = false;					response=this._responseXML = req.responseXML;									} else {					response=this._response = req.responseText;					this._responseXML = false;				}								this._ready = true;				var status;				var statusText;				try {					status=req.status;					statusText=req.statusText;									} catch (ex) {					f_core.Error(f_httpRequest, "Can not get status of request !", ex);				}								f_core.Debug(f_httpRequest, "Response='"+response+"' status='"+status+"'.");				if (status!=f_httpRequest.OK_STATUS) {					this._callError(status, req.statusText);					return;						}								var onLoad=this._listener.onLoad;				if (typeof(onLoad)!="function") {					return;				}								try {					if (!this._noLog) {						f_core.Info(f_httpRequest, "Call onLoad for url="+url+" . (+"+(new Date().getTime()-this._date)+"ms)\nresponse size="+((response)?(response.length+" bytes"):"null"));					}					onLoad(this, response, this._responseContentType);									} catch (ex) {					f_core.Error(f_httpRequest, "Exception when calling onLoad method for url '"+url+"'.\n"+onLoad, ex);				}				return;			}		}	},
meta: 4326	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4326/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/f_httpRequest.js/clean/org.rcfaces.renderkit.html/src/org/rcfaces/renderkit/html/internal/javascript/f_httpRequest.js