public/js/agreement.form.js
function SignAgreement(data) {
    var d = {
      'a_name': data.a_name,
      'a_dob': data.a_dob
    };
    XForm.prototype.XExecutePost('../agreement/_sign', d, function (rslt) {
      if ('_success' in rslt) {
        window.location.href = jsh._BASEURL + 'agreement/welcome/';
      }
    });
  }
function SignAgreement(data) {
    var d = {
      'a_name': data.a_name,
      'a_dob': data.a_dob
    };
    XForm.prototype.XExecutePost('../agreement/_sign', d, function (rslt) {
      if ('_success' in rslt) {
        window.location.href = jsh._BASEURL + 'agreement/welcome/';
      }
    });
  }
function SignAgreement ( data ) { var d = { 'a_name' : data . a_name , 'a_dob' : data . a_dob } ; XForm . prototype . XExecutePost ( '../agreement/_sign' , d , function ( rslt ) { if ( '_success' in rslt ) { window . location . href = jsh . _BASEURL + 'agreement/welcome/' ; } } ) ; }
AppSrv Logic
AppSrv Logic