add: else if(cmd=="jc"){cmdFullname="addScriptCall";var scr=id+'(';if(data[0]!=null){scr+='data[0]';for(var l=1;l<data.length;l++){scr+=',data['+l+']';} } scr+=');';eval(scr);} 
context: this.processResponse=function(xml){clearTimeout(loadingTimeout);this.doneLoadingFunction();if(xajaxStatusMessages==true)window.status='Processing...';var tmpXajax=null;xml=xml.documentElement;if(xml==null)return;for(var i=0;i<xml.childNodes.length;i++){if(xml.childNodes[i].nodeName=="cmd"){var cmd;var id;var property;var data;var search;var type;var before;for(var j=0;j<xml.childNodes[i].attributes.length;j++){if(xml.childNodes[i].attributes[j].name=="n"){cmd=xml.childNodes[i].attributes[j].value;}else if(xml.childNodes[i].attributes[j].name=="t"){id=xml.childNodes[i].attributes[j].value;}else if(xml.childNodes[i].attributes[j].name=="p"){property=xml.childNodes[i].attributes[j].value;}else if(xml.childNodes[i].attributes[j].name=="c"){type=xml.childNodes[i].attributes[j].value;}}if(xml.childNodes[i].childNodes.length > 1&&xml.childNodes[i].firstChild.nodeName=="#cdata-section"){data="";for(var j=0;j<xml.childNodes[i].childNodes.length;j++){data+=xml.childNodes[i].childNodes[j].data;}}else if(xml.childNodes[i].childNodes.length > 1){for(var j=0;j<xml.childNodes[i].childNodes.length;j++){if(xml.childNodes[i].childNodes[j].childNodes.length > 1&&xml.childNodes[i].childNodes[j].firstChild.nodeName=="#cdata-section"){var internalData="";for(var k=0;k<xml.childNodes[i].childNodes[j].childNodes.length;k++){internalData+=xml.childNodes[i].childNodes[j].childNodes[k].nodeValue;}}else{var internalData=xml.childNodes[i].childNodes[j].firstChild.nodeValue;}if(xml.childNodes[i].childNodes[j].nodeName=="s"){search=internalData;}if(xml.childNodes[i].childNodes[j].nodeName=="r"){data=internalData;}}}else if(xml.childNodes[i].firstChild)data=xml.childNodes[i].firstChild.nodeValue;elsedata="";var objElement=this.$(id);var cmdFullname;try{if(cmd=="al"){cmdFullname="addAlert";alert(data);}else if(cmd=="js"){cmdFullname="addScript/addRedirect";eval(data);}else if(cmd=="in"){cmdFullname="addIncludeScript";this.include(data);}else if(cmd=="as"){cmdFullname="addAssign/addClear";if(this.willChange(id,property,data)){eval("objElement."+property+"=data;");}}else if(cmd=="ap"){cmdFullname="addAppend";eval("objElement."+property+"+=data;");}else if(cmd=="pp"){cmdFullname="addPrepend";eval("objElement."+property+"=data+objElement."+property);}else if(cmd=="rp"){cmdFullname="addReplace";this.replace(id,property,search,data)}else if(cmd=="rm"){cmdFullname="addRemove";this.remove(id);}else if(cmd=="ce"){cmdFullname="addCreate";this.create(id,data,property);}else if(cmd=="ie"){cmdFullname="addInsert";this.insert(id,data,property);}else if(cmd=="ia"){cmdFullname="addInsertAfter";this.insertAfter(id,data,property);}else if(cmd=="ci"){cmdFullname="addCreateInput";this.createInput(id,type,data,property);}else if(cmd=="ii"){cmdFullname="addInsertInput";this.insertInput(id,type,data,property);}else if(cmd=="ev"){cmdFullname="addEvent";property=this.addOnPrefix(property);eval("this.$('"+id+"')."+property+"= function(){"+data+";}");}else if(cmd=="ah"){cmdFullname="addHandler";this.addHandler(id,property,data);}else if(cmd=="rh"){cmdFullname="addRemoveHandler";this.removeHandler(id,property,data);}}catch(e){if(xajaxDebug)alert("While trying to '"+cmdFullname+"' (command number "+i+"), the following error occured:\n"+e.name+": "+e.message+"\n"+(id&&!objElement?"Object with id='"+id+"' wasn't found.\n":""));}delete objElement;delete cmd;delete cmdFullname;delete id;delete property;delete search;delete data;delete type;delete before;delete internalData;delete j;delete k;}}delete xml;delete i;document.body.style.cursor='default';if(xajaxStatusMessages==true)window.status='Done';}
meta: 1064	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1064/8069e89683f33fe99268836d31fa9481c1b15902/xajax.js/buggy/tiki/xajax_js/xajax.js