x6.json.init
The Javascript method x6.json.init initiates a new
JSON request.
Optionally you can pass two inputs and eliminate one
call to x6.json.addParm.
string - if provided, a parameter name
mixed - if provided, the value for the parameter
Here are two examples for initiating a JSON request
<script>
// The short way
x6.json.init('x4Page','myCustomPage');
// Passing w/o parameters requires at least one
// call to x6.json.addParm.
x6.json.init();
x6.json.addParm('x4Page','myCustomPage');
</script>
init: function(name,value) {
this.x4Page = '';
this.x4Action = '';
this.callString = '';
this.parms = { };
this.reportErrors=true;
this.explicitParms= '';
if(name!=null) {
this.addParm(name,value);
}
var self = this;
// KFD 3/20/09 Sourceforge 2697962
// Make sure hold variables always go through
$('[id^=hld]').each(function() {
self.addParm( $(this).attr('id'), $(this).val() );
});
},