rem: Xinha._postback = function(url, data, handler) { var req = null; req = Xinha.getXMLHTTPRequestObject();  var content = ''; if (typeof data == 'string') { content = data; } else if(typeof data == "object") { for ( var i in data ) { content += (content.length ? '&' : '') + i + '=' + encodeURIComponent(data[i]); } }  function callBack() { if ( req.readyState == 4 ) { if ( req.status == 200 || Xinha.isRunLocally && req.status == 0 ) { if ( typeof handler == 'function' ) { handler(req.responseText, req); } } else { alert('An error has occurred: ' + req.statusText); } } }  req.onreadystatechange = callBack;  req.open('POST', url, true); req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');  req.send(content); 
add: Xinha._postback=function(url,data,_201){ var req=null; req=Xinha.getXMLHTTPRequestObject(); var _203=""; if(typeof data=="string"){ _203=data; }else{ if(typeof data=="object"){ for(var i in data){ _203+=(_203.length?"&":"")+i+"="+encodeURIComponent(data[i]); } } } function callBack(){ if(req.readyState==4){ if(req.status==200||Xinha.isRunLocally&&req.status==0){ if(typeof _201=="function"){ _201(req.responseText,req); } }else{ alert("An error has occurred: "+req.statusText); } } } req.onreadystatechange=callBack; req.open("POST",url,true); req.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"); req.send(_203); 
context: Xinha._postback = function(url, data, handler){  var req = null;  req = Xinha.getXMLHTTPRequestObject();  var content = '';  if (typeof data == 'string')  {    content = data;  }  else if(typeof data == "object")  {    for ( var i in data )    {      content += (content.length ? '&' : '') + i + '=' + encodeURIComponent(data[i]);    }  }  function callBack()  {    if ( req.readyState == 4 )    {      if ( req.status == 200 || Xinha.isRunLocally && req.status == 0 )      {        if ( typeof handler == 'function' )        {          handler(req.responseText, req);        }      }      else      {        alert('An error has occurred: ' + req.statusText);      }    }  }  req.onreadystatechange = callBack;  req.open('POST', url, true);  req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');  //alert(content);  req.send(content);};
meta: 6015	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6015/d8776708e0e10dfa0ab6ee1d0fa9e512d8d16348/XinhaCore.js/clean/packages/acs-templating/www/resources/xinha-nightly/XinhaCore.js