rem: var ajaxId = (opts.reverseAjax) ? 0 : Ajax.getNextId(); var method = opts.method; var returnFunction = opts.onComplete; var returnArgs = (opts.returnArgs == null) ? opts : opts.returnArgs; var request = new AjaxRequest(opts.onComplete, returnArgs, ajaxId); var xmlHttpReq = request.getRequest(); 
add: var request; 
context: 	request : function(url, options) {		/*		 * OPTIONS:		 * onComplete (function) - function to call after response is received		 * returnArgs (object) - object to pass to return function		 * reverseAjax (boolean) - use reverse ajax. (only one at a time)		 * method (string) - use "get" or "post". Default is post.		 */		var opts = (options == null) ? (new Object()) : options;				var ajaxId = (opts.reverseAjax) ? 0 : Ajax.getNextId();		var method = opts.method;		var returnFunction = opts.onComplete;		var returnArgs = (opts.returnArgs == null) ? opts : opts.returnArgs;		var request = new AjaxRequest(opts.onComplete, returnArgs, ajaxId);		var xmlHttpReq = request.getRequest();				Ajax.requests[ajaxId] = request;				if (url.indexOf("?") < 0) {			url += "?";		}		else {			url += "&";		}			url += "no_cache=" + random() + "&ajax_id=" + ajaxId;				var urlArray = url.split("?");		var path = urlArray[0];		var query = urlArray[1];		try {			if (method == "get") {				xmlHttpReq.open("GET", url, true);			}			else {				xmlHttpReq.open("POST", path, true);				xmlHttpReq.setRequestHeader("Method", "POST " + path + " HTTP/1.1");				xmlHttpReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");				xmlHttpReq.send(query);			}		}		catch (e) {		}				if (returnFunction == null) {			Ajax.remove(ajaxId);		}	},
meta: 10143	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10143/25b685866d385ec9ed69e539f12f812b06d4887e/ajax.js/buggy/portal-web/docroot/html/js/ajax.js