rem: return function(name, arguments) {  _debug("starting xmlhttprequest");  var request = _newXMLHttpRequest(); asynch = true;       request.open('POST', location.href, asynch); request.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); request.onreadystatechange = _remoteCallHandler(kappa, request);  request.send("__name=" + _base64encode(name) + "&__args=" + _base64encode(JSON.stringify(arguments))); 
add: return function() { if (request.readyState == isComplete) {  var serverResponse = JSON.parse(_base64decode(request.responseText.replace('\n', ''))); if ((serverResponse instanceof Object) && ('__continuation' in serverResponse)) {  var res = null; var cont = function(r) {    if(r == undefined) r = {}; res = r; } var f = eval(serverResponse.__name);   f.apply(f, [serverResponse.__arg, cont]); var request_ = _newXMLHttpRequest(); request_.open('POST', location.href, true); request_.onreadystatechange = _remoteCallHandler(kappa, request_); request_.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); request_.send("__continuation=" + serverResponse.__continuation + "&__result=" + _base64encode(JSON.stringify(res))); } else {  kappa(serverResponse); } } 
context:   return function(name, arguments) {    _debug("starting xmlhttprequest");    var request = _newXMLHttpRequest();    asynch = true;    // [IE] IE mistakenly urlencodes # as %23    // whereas Firefox leaves it plain    //    // so we use location.href instead    // which seems to work in both    request.open('POST', location.href, asynch);    request.setRequestHeader('Content-Type','application/x-www-form-urlencoded');    request.onreadystatechange = _remoteCallHandler(kappa, request);    request.send("__name=" + _base64encode(name) +                  "&__args=" + _base64encode(JSON.stringify(arguments)));  }
meta: 3248	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3248/c0069a501199dca7a1e727b4404f3d417f23730d/jslib.js/clean/lib/js/jslib.js