rem: this.getFormValues=function(frm){var objForm;var submitDisabledElements=false;if(arguments.length > 1&&arguments[1]==true) submitDisabledElements=true;if(typeof(frm)=="string") objForm=this.$(frm);else objForm=frm;var sXml="<xjxquery><q>";if(objForm&&objForm.tagName=='FORM'){var formElements=objForm.elements;for(var i=0;i < formElements.length;i++){if(formElements[i].type&&(formElements[i].type=='radio'||formElements[i].type=='checkbox')&&formElements[i].checked==false) continue;if(formElements[i].disabled&&formElements[i].disabled==true&&submitDisabledElements==false)continue;var name=formElements[i].name;if(name){if(sXml!='<xjxquery><q>') sXml+='&';if(formElements[i].type=='select-multiple'){for(var j=0;j < formElements[i].length;j++){if(formElements[i].options[j].selected==true)sXml+=name+"="+encodeURIComponent(formElements[i].options[j].value)+"&";} } else{sXml+=name+"="+encodeURIComponent(formElements[i].value);} } } } sXml+="</q></xjxquery>";return sXml;} 
add: this.getFormValues = function(frm) { var objForm; var submitDisabledElements = false; if (arguments.length > 1 && arguments[1] == true) submitDisabledElements = true;  if (typeof(frm) == "string") objForm = this.$(frm); else objForm = frm; var sXml = "<xjxquery><q>"; if (objForm && objForm.tagName == 'FORM') { var formElements = objForm.elements; for( var i=0; i < formElements.length; i++) { if (formElements[i].type && (formElements[i].type == 'radio' || formElements[i].type == 'checkbox') && formElements[i].checked == false) continue; if (formElements[i].disabled && formElements[i].disabled == true && submitDisabledElements == false) continue; var name = formElements[i].name; if (name) { if (sXml != '<xjxquery><q>') sXml += '&'; if(formElements[i].type=='select-multiple') { for (var j = 0; j < formElements[i].length; j++) { if (formElements[i].options[j].selected == true)   sXml += name+"="+encodeURIComponent(formElements[i].options[j].value)+"&"; } } else { sXml += name+"="+encodeURIComponent(formElements[i].value); } } } }  sXml +="</q></xjxquery>";  return sXml; } 
context: this.getFormValues=function(frm){var objForm;var submitDisabledElements=false;if(arguments.length > 1&&arguments[1]==true)submitDisabledElements=true;if(typeof(frm)=="string")objForm=this.$(frm);elseobjForm=frm;var sXml="<xjxquery><q>";if(objForm&&objForm.tagName=='FORM'){var formElements=objForm.elements;for(var i=0;i < formElements.length;i++){if(formElements[i].type&&(formElements[i].type=='radio'||formElements[i].type=='checkbox')&&formElements[i].checked==false)continue;if(formElements[i].disabled&&formElements[i].disabled==true&&submitDisabledElements==false)continue;var name=formElements[i].name;if(name){if(sXml!='<xjxquery><q>')sXml+='&';if(formElements[i].type=='select-multiple'){for(var j=0;j < formElements[i].length;j++){if(formElements[i].options[j].selected==true)sXml+=name+"="+encodeURIComponent(formElements[i].options[j].value)+"&";}}else{sXml+=name+"="+encodeURIComponent(formElements[i].value);}}}}sXml+="</q></xjxquery>";return sXml;}
meta: 8936	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8936/eec59bc291abab488d492ab49f32f1bb86259f41/xajax.js/clean/trunk/3dparty/xajax/xajax_js/xajax.js