x6.json.addParm
The Javascript method x6.json.addParm adds one parameter
to a JSON call previously initiated with x6.json.init.
string - required, a parameter name
mixed - required, the value for the parameter
Here are two examples for initiating a JSON request
<script>
x6.json.init();
// Name the server-side page to call
x6.json.addParm('x4Page','myCustomPage');
// Name the server-side method to call
x6.json.addParm('x4Action','fetchSomething');
</script>
this.addParm = function(name,value) {
this.parms[name] = value;
if(name=='x4Page') this.x4Page = value;
if(name=='x4Action') this.x4Action = value;
}