public/javascripts/inputex/js/rpc/inputex-rpc.js
function(smd, method, data) {
            var eURI = encodeURIComponent;
            var params = [];
            for(var name in data){
         	   if(data.hasOwnProperty(name)){
            	   var value = data[name];
            		if(lang.isArray(value)){
            			for(var i=0; i < value.length; i++){
            				params.push(eURI(name)+"="+eURI(value[i]));
            			}
            		}else{
            			params.push(eURI(name)+"="+eURI(value));
            		}
            	}
            }
            return {
   				data: params.join("&")
            };   
         }
function(smd, method, data) {
            var eURI = encodeURIComponent;
            var params = [];
            for(var name in data){
         	   if(data.hasOwnProperty(name)){
            	   var value = data[name];
            		if(lang.isArray(value)){
            			for(var i=0; i < value.length; i++){
            				params.push(eURI(name)+"="+eURI(value[i]));
            			}
            		}else{
            			params.push(eURI(name)+"="+eURI(value));
            		}
            	}
            }
            return {
   				data: params.join("&")
            };   
         }
function ( smd , method , data ) { var eURI = encodeURIComponent ; var params = [ ] ; for ( var name in data ) { if ( data . hasOwnProperty ( name ) ) { var value = data [ name ] ; if ( lang . isArray ( value ) ) { for ( var i = 0 ; i < value . length ; i ++ ) { params . push ( eURI ( name ) + "=" + eURI ( value [ i ] ) ) ; } } else { params . push ( eURI ( name ) + "=" + eURI ( value ) ) ; } } } return { data : params . join ( "&" ) } ; }
Serialize data into URI encoded parameters
Serialize data into URI encoded parameters